File: 102_MdFlag.diff

package info (click to toggle)
xterm 278-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,612 kB
  • sloc: ansic: 57,122; sh: 4,340; perl: 1,287; makefile: 719; sed: 12
file content (19 lines) | stat: -rw-r--r-- 797 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# ftp://invisible-island.net/temp/xterm-278-p2.patch.gz
# patch by Thomas E. Dickey <dickey@invisible-island.net>
# created  Tue Nov 27 10:17:13 UTC 2012
# ------------------------------------------------------------------------------
# misc.c |    2 +-
# 1 file changed, 1 insertion(+), 1 deletion(-)
# ------------------------------------------------------------------------------
Index: misc.c
--- xterm-278+/misc.c	2012-01-07 01:57:52.000000000 +0000
+++ xterm-278-p2/misc.c	2012-11-27 10:00:55.000000000 +0000
@@ -3770,7 +3770,7 @@
 };
 
 #define MdBool(bool)      ((bool) ? mdMaybeSet : mdMaybeReset)
-#define MdFlag(mode,flag) MdBool(xw->keyboard.flags & MODE_KAM)
+#define MdFlag(mode,flag) MdBool((mode) & (flag))
 
 /*
  * Reply is the same format as the query, with pair of mode/value: