mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
updated for version 7.2-073
This commit is contained in:
10
src/misc2.c
10
src/misc2.c
@@ -2561,7 +2561,7 @@ trans_special(srcp, dst, keycode)
|
||||
int key;
|
||||
int dlen = 0;
|
||||
|
||||
key = find_special_key(srcp, &modifiers, keycode);
|
||||
key = find_special_key(srcp, &modifiers, keycode, FALSE);
|
||||
if (key == 0)
|
||||
return 0;
|
||||
|
||||
@@ -2597,10 +2597,11 @@ trans_special(srcp, dst, keycode)
|
||||
* returns 0 if there is no match.
|
||||
*/
|
||||
int
|
||||
find_special_key(srcp, modp, keycode)
|
||||
find_special_key(srcp, modp, keycode, keep_x_key)
|
||||
char_u **srcp;
|
||||
int *modp;
|
||||
int keycode; /* prefer key code, e.g. K_DEL instead of DEL */
|
||||
int keycode; /* prefer key code, e.g. K_DEL instead of DEL */
|
||||
int keep_x_key; /* don't translate xHome to Home key */
|
||||
{
|
||||
char_u *last_dash;
|
||||
char_u *end_of_name;
|
||||
@@ -2668,7 +2669,8 @@ find_special_key(srcp, modp, keycode)
|
||||
else
|
||||
{
|
||||
key = get_special_key_code(last_dash + 1);
|
||||
key = handle_x_keys(key);
|
||||
if (!keep_x_key)
|
||||
key = handle_x_keys(key);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user