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.
This commit is contained in:
zeertzjq
2023-12-23 15:53:28 +08:00
committed by GitHub
parent 3c667d3e0f
commit c16d5729b5
8 changed files with 32 additions and 39 deletions

View File

@@ -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;