aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/keycodes.h
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/keycodes.h
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/keycodes.h')
-rw-r--r--src/nvim/keycodes.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/nvim/keycodes.h b/src/nvim/keycodes.h
index fafe205f4d..6aebad5b66 100644
--- a/src/nvim/keycodes.h
+++ b/src/nvim/keycodes.h
@@ -4,7 +4,6 @@
#include "nvim/ascii_defs.h"
#include "nvim/eval/typval_defs.h" // IWYU pragma: keep
-#include "nvim/option_vars.h"
// Keycode definitions for special keys.
//
@@ -475,11 +474,6 @@ enum key_extra {
/// This is a total of 6 tokens, and is currently the longest one possible.
#define MAX_KEY_CODE_LEN 6
-#define FLAG_CPO_BSLASH 0x01
-#define CPO_TO_CPO_FLAGS ((vim_strchr((char *)p_cpo, CPO_BSLASH) == NULL) \
- ? 0 \
- : FLAG_CPO_BSLASH)
-
/// Flags for replace_termcodes()
enum {
REPTERM_FROM_PART = 1,