Please try this: Index: status.c =================================================================== RCS file: /cvs/src/usr.bin/tmux/status.c,v retrieving revision 1.60 diff -u -p -r1.60 status.c --- status.c 27 Mar 2010 15:06:40 -0000 1.60 +++ status.c 29 Mar 2010 18:40:19 -0000 @@ -1046,7 +1046,7 @@ status_prompt_key(struct client *c, int status_prompt_clear(c); break; case MODEKEY_OTHER: - if (key < 32 || key == 127) + if ((key & 0xff00) != 0 || key < 32 || key == 127) break; c->prompt_buffer = xrealloc(c->prompt_buffer, 1, size + 2);
On Thu, Mar 25, 2010 at 09:30:47PM -0400, Brian R. Landy wrote: > Hi, I have found a way to crash the tmux server using vim and urxvt (I > suspect any terminal that can support ttymouse=xterm in vim would do the > same). Here's how I do it. First, setup this minimal .vimrc: > > "enable non-vi compatible features -- do first! > set nocompatible > > "read in sample configs > source $VIMRUNTIME/vimrc_example.vim > behave xterm > set selectmode=key " using mouse enters visual mode > set keymodel=startsel ",stopsel > > And add something like this to your .tmux.conf: > > bind P command-prompt "set default-path '%%'" > > Then follow these steps: > 1. Open a urxvt terminal and start a tmux session > 2. Launch vim > 3. Click & drag the mouse somewhere on the empty background (avoid the vim > startup text). This should put vim into visual mode, of course it won't > select anything because there is nothing to select. > 4. Type your tmux prefix > 5. Type "P" > 6. Paste from the mouse's select buffer a couple of times. You should see it > enter a space each time. > 7. Backspace a few times. The tmux server should crash. > > Anyway, I can repeat it every time, so am happy to run anything to help debug > if this is difficult to recreate. I am running a recent pull from cvs (~ 2 > weeks ago), crashes on OS X 10.6 and OpenBSD 4.6. > > Thanks, > Brian > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users