[Patch] jump-to-char

2010-02-17 Thread Micah Cowan
This patch introduces support for the quick "jump-to-char" commands from vi, for tmux's copy mode. They are bound to the same keys in both vi mode and emacs. This patch expects to be applied after the other two patches I recently rebased (cmd-prefixes and word-separators). The new bindings let you

Rebased diffs: word-separators and cmd-prefixes

2010-02-17 Thread Micah Cowan
Okay, these diffs have been rebased to before the copy-output-merge stuff (and to the latest OpenBSD changes), and reworked a bit. They should be applied in the order: word-separators, then cmd-prefixes. -- Micah J. Cowan http://micah.cowan.name/ Index: mode-key.c

Re: tmux loadb and fifos

2010-02-17 Thread Nicholas Marriott
I can't see a reason why it shouldn't, I'll add it to the todo list, if you want to send me some code to do it it would be great ;-). On Wed, Feb 17, 2010 at 05:37:14PM +0100, Fulvio Ciriaco wrote: > I cannot really imagine that any size returned by fstat for a fifo, > might have any sense. > Any

Re: [Patch] BUG: clipped copies on wrapped lines

2010-02-17 Thread Nicholas Marriott
Fixed thanks. On Tue, Feb 16, 2010 at 10:22:06AM -0800, Micah Cowan wrote: > If you select some text from a wrapped line, where the selection is of > stuff before the final wrap of the line, the final chraracter gets > stripped on copy. This patch fixes the problem for me. > > -- > Micah J. Cow

Re: tmux loadb and fifos

2010-02-17 Thread Fulvio Ciriaco
I cannot really imagine that any size returned by fstat for a fifo, might have any sense. Anyhow, both on NetBSD and Linux, sb.st_size for FIFOs returns 0. Is there any reason why tmux should not read to EOF? There is nothing particularly terrible in having to write to a file on disk but it is not

Re: FIXED Re: [Patch] Replace output mode with copy mode

2010-02-17 Thread Nicholas Marriott
Yeah, whether or not va_start/va_arg/etc are nondestructive is completely an implementation detail, could vary with arch, compiler, stack layout etc. You have to use va_copy() if you want to use a va_list twice. On Tue, Feb 16, 2010 at 04:36:36PM -0800, Micah Cowan wrote: > The problem was that I

Re: tmux loadb and fifos

2010-02-17 Thread Nicholas Marriott
cat reads the file until EOF, tmux checks the file size and then reads that amount. Check what fstat() is returning for the size in cmd-load-buffer.c and see if it matches what you expect. On Wed, Feb 17, 2010 at 01:57:54AM +0100, Fulvio Ciriaco wrote: > Please would you explain it better to me?