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

Modified Files:
        cmd-list-keys.c 
Log Message:
Sync OpenBSD patchset 778:

Mark repeating keys with "(repeat)" in the key list.


Index: cmd-list-keys.c
===================================================================
RCS file: /cvsroot/tmux/tmux/cmd-list-keys.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- cmd-list-keys.c     4 Dec 2009 22:14:47 -0000       1.24
+++ cmd-list-keys.c     24 Oct 2010 01:31:57 -0000      1.25
@@ -80,6 +80,11 @@
                        if (used >= sizeof tmp)
                                continue;
                }
+               if (bd->can_repeat) {
+                       used = strlcat(tmp, "(repeat) ", sizeof tmp);
+                       if (used >= sizeof tmp)
+                               continue;
+               }
                cmd_list_print(bd->cmdlist, tmp + used, (sizeof tmp) - used);
                ctx->print(ctx, "%s", tmp);
        }


------------------------------------------------------------------------------
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