mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 20:08:17 +00:00
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:
@@ -461,7 +461,7 @@ String nvim_replace_termcodes(String str, Boolean from_part, Boolean do_lt, Bool
|
||||
}
|
||||
|
||||
char *ptr = NULL;
|
||||
replace_termcodes(str.data, str.size, &ptr, 0, flags, NULL, CPO_TO_CPO_FLAGS);
|
||||
replace_termcodes(str.data, str.size, &ptr, 0, flags, NULL, p_cpo);
|
||||
return cstr_as_string(ptr);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user