aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/menu.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-12-23 15:53:28 +0800
committerGitHub <noreply@github.com>2023-12-23 15:53:28 +0800
commitc16d5729b52d2f878cd035341b951b1f185b45c9 (patch)
tree7e4f44b869d0d14fbe0eae7702426d483b3cce6c /src/nvim/menu.c
parent3c667d3e0fe41a900cee9477e190ae02d7ec0c23 (diff)
downloadrneovim-c16d5729b52d2f878cd035341b951b1f185b45c9.tar.gz
rneovim-c16d5729b52d2f878cd035341b951b1f185b45c9.tar.bz2
rneovim-c16d5729b52d2f878cd035341b951b1f185b45c9.zip
refactor: remove CPO_TO_CPO_FLAGS() (#26718)
Just pass p_cpo to replace_termcodes() directly. This allows removing option_vars.h from keycodes.h, and also avoids the mistake of passing 0 as cpo_flags.
Diffstat (limited to 'src/nvim/menu.c')
-rw-r--r--src/nvim/menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/menu.c b/src/nvim/menu.c
index 383c9e7817..c4486222a5 100644
--- a/src/nvim/menu.c
+++ b/src/nvim/menu.c
@@ -226,7 +226,7 @@ void ex_menu(exarg_T *eap)
} else {
map_buf = NULL;
map_to = replace_termcodes(map_to, strlen(map_to), &map_buf, 0,
- REPTERM_DO_LT, NULL, CPO_TO_CPO_FLAGS);
+ REPTERM_DO_LT, NULL, p_cpo);
}
menuarg.modes = modes;
menuarg.noremap[0] = noremap;