4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: ":set <xHome>" has the same output as ":set <Home>". (Matt
13 Solution: Don't translate "x" keys to its alternative for ":set".
14 Files: src/misc2.c, src/option.c, src/proto/misc2.pro
17 *** ../vim-7.2.072/src/misc2.c Wed Nov 12 13:07:48 2008
18 --- src/misc2.c Sun Dec 14 12:28:47 2008
24 ! key = find_special_key(srcp, &modifiers, keycode);
32 ! key = find_special_key(srcp, &modifiers, keycode, FALSE);
38 * returns 0 if there is no match.
41 ! find_special_key(srcp, modp, keycode)
44 ! int keycode; /* prefer key code, e.g. K_DEL instead of DEL */
49 * returns 0 if there is no match.
52 ! find_special_key(srcp, modp, keycode, keep_x_key)
55 ! int keycode; /* prefer key code, e.g. K_DEL instead of DEL */
56 ! int keep_x_key; /* don't translate xHome to Home key */
64 key = get_special_key_code(last_dash + 1);
65 ! key = handle_x_keys(key);
72 key = get_special_key_code(last_dash + 1);
74 ! key = handle_x_keys(key);
78 *** ../vim-7.2.072/src/option.c Fri Nov 28 21:26:50 2008
79 --- src/option.c Sun Dec 14 12:28:56 2008
83 --arg; /* put arg at the '<' */
85 ! key = find_special_key(&arg, &modifiers, TRUE);
86 if (modifiers) /* can't handle modifiers here */
91 --arg; /* put arg at the '<' */
93 ! key = find_special_key(&arg, &modifiers, TRUE, TRUE);
94 if (modifiers) /* can't handle modifiers here */
97 *** ../vim-7.2.072/src/proto/misc2.pro Thu Jul 24 20:29:37 2008
98 --- src/proto/misc2.pro Sun Dec 14 12:29:05 2008
101 int handle_x_keys __ARGS((int key));
102 char_u *get_special_key_name __ARGS((int c, int modifiers));
103 int trans_special __ARGS((char_u **srcp, char_u *dst, int keycode));
104 ! int find_special_key __ARGS((char_u **srcp, int *modp, int keycode));
105 int extract_modifiers __ARGS((int key, int *modp));
106 int find_special_key_in_table __ARGS((int c));
107 int get_special_key_code __ARGS((char_u *name));
109 int handle_x_keys __ARGS((int key));
110 char_u *get_special_key_name __ARGS((int c, int modifiers));
111 int trans_special __ARGS((char_u **srcp, char_u *dst, int keycode));
112 ! int find_special_key __ARGS((char_u **srcp, int *modp, int keycode, int keep_x_key));
113 int extract_modifiers __ARGS((int key, int *modp));
114 int find_special_key_in_table __ARGS((int c));
115 int get_special_key_code __ARGS((char_u *name));
116 *** ../vim-7.2.072/src/version.c Wed Dec 24 12:43:15 2008
117 --- src/version.c Wed Dec 24 12:51:26 2008
121 { /* Add new patch number below this line */
128 ARTHUR: If you do not open these doors, we will take this castle by force ...
129 [A bucket of slops land on ARTHUR. He tries to retain his dignity.]
130 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
132 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
133 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
134 \\\ download, build and distribute -- http://www.A-A-P.org ///
135 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///