aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/menu.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-07-02 13:21:38 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-07-08 16:34:35 +0200
commit0ea7e45bc1d1881f505da2b77e0b3e4eb56f12fe (patch)
tree4248c49bec3924a7faa974535aa7de2df0d7d88b /src/nvim/menu.c
parent78c5201234e478ff8f648adea95be18ca588a9cd (diff)
downloadrneovim-0ea7e45bc1d1881f505da2b77e0b3e4eb56f12fe.tar.gz
rneovim-0ea7e45bc1d1881f505da2b77e0b3e4eb56f12fe.tar.bz2
rneovim-0ea7e45bc1d1881f505da2b77e0b3e4eb56f12fe.zip
'cpoptions': remove "<" flag; ignore <special>
Closes #6937 "nvim_get_keymap output is unreliable"
Diffstat (limited to 'src/nvim/menu.c')
-rw-r--r--src/nvim/menu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/menu.c b/src/nvim/menu.c
index 7e9e9e9e5c..c8e6012e5c 100644
--- a/src/nvim/menu.c
+++ b/src/nvim/menu.c
@@ -60,7 +60,6 @@ ex_menu (
char_u *map_to;
int noremap;
bool silent = false;
- bool special = false;
int unmenu;
char_u *map_buf;
char_u *arg;
@@ -86,7 +85,7 @@ ex_menu (
continue;
}
if (STRNCMP(arg, "<special>", 9) == 0) {
- special = true;
+ // Ignore obsolete "<special>" modifier.
arg = skipwhite(arg + 9);
continue;
}
@@ -222,7 +221,7 @@ ex_menu (
map_buf = NULL; // Menu tips are plain text.
} else {
map_to = replace_termcodes(map_to, STRLEN(map_to), &map_buf, false, true,
- special, CPO_TO_CPO_FLAGS);
+ true, CPO_TO_CPO_FLAGS);
}
menuarg.modes = modes;
menuarg.noremap[0] = noremap;