Update of /cvsroot/tmux/tmux
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv29970

Modified Files:
        xterm-keys.c 
Log Message:
Sync OpenBSD patchset 772:

Treat the meta bit in the xterm extended modifier key set as the same as
escape (tmux's meta). From Emanuele Giaquinta.


Index: xterm-keys.c
===================================================================
RCS file: /cvsroot/tmux/tmux/xterm-keys.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- xterm-keys.c        7 Sep 2010 13:21:18 -0000       1.6
+++ xterm-keys.c        24 Oct 2010 00:30:51 -0000      1.7
@@ -128,6 +128,8 @@
                modifiers |= KEYC_ESCAPE;
        if (param & 4)
                modifiers |= KEYC_CTRL;
+       if (param & 8)
+               modifiers |= KEYC_ESCAPE;
        return (modifiers);
 }
 
@@ -172,6 +174,8 @@
                modifiers += 2;
        if (key & KEYC_CTRL)
                modifiers += 4;
+       if (key & KEYC_ESCAPE)
+               modifiers += 8;
 
        /*
         * If the key has no modifiers, return NULL and let it fall through to


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to