Hmm yes this is wrong for emacs and doesn't match what tmux does for 'e' in vi mode either. So we need to do this and then if desired fix vi mode in both so they work like vi:
Index: status.c =================================================================== RCS file: /cvs/src/usr.bin/tmux/status.c,v retrieving revision 1.81 diff -u -p -r1.81 status.c --- status.c 15 Nov 2011 23:34:12 -0000 1.81 +++ status.c 27 Nov 2011 03:09:56 -0000 @@ -1156,11 +1156,8 @@ status_prompt_key(struct client *c, int /* Find the separator at the end of the word. */ while (c->prompt_index != size) { c->prompt_index++; - if (strchr(wsep, c->prompt_buffer[c->prompt_index])) { - /* Go back to the word. */ - c->prompt_index--; + if (strchr(wsep, c->prompt_buffer[c->prompt_index])) break; - } } c->flags |= CLIENT_STATUS; On Fri, Nov 25, 2011 at 06:32:40PM +0100, Romain Francoise wrote: > Hi Ben, > > Did you test this patch series in emacs editing mode? M-f doesn't behave > as it should, I'd expect it to move the cursor *after* the current word > but it goes back to the last letter. This is inconsistent with the > existing copy-mode implementation (and Emacs, readline, etc). > > Thanks, > -- > Romain Francoise <rfranco...@debian.org> > http://people.debian.org/~rfrancoise/ ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users