aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-01-21 18:08:56 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-01-21 18:08:56 +0800
commit8300d337c89dc3ef943694bc1d44f32145a74f0d (patch)
tree50f7aa75fb1cff3d19c7e357371d4b91216e2d2d
parentff7c3d12750b1cd4baccea0baeafe7e5d5339e94 (diff)
downloadrneovim-8300d337c89dc3ef943694bc1d44f32145a74f0d.tar.gz
rneovim-8300d337c89dc3ef943694bc1d44f32145a74f0d.tar.bz2
rneovim-8300d337c89dc3ef943694bc1d44f32145a74f0d.zip
refactor: remove the <xCSI> key
CSI typed directly is now just <CSI>. The <xCSI> key is obsolete.
-rw-r--r--runtime/doc/intro.txt1
-rw-r--r--src/nvim/keymap.c1
-rw-r--r--src/nvim/keymap.h3
3 files changed, 1 insertions, 4 deletions
diff --git a/runtime/doc/intro.txt b/runtime/doc/intro.txt
index 0e0156ac6b..54999fa163 100644
--- a/runtime/doc/intro.txt
+++ b/runtime/doc/intro.txt
@@ -322,7 +322,6 @@ notation meaning equivalent decimal value(s) ~
<Bar> vertical bar | 124 *<Bar>*
<Del> delete 127
<CSI> command sequence intro ALT-Esc 155 *<CSI>*
-<xCSI> CSI when typed in the GUI *<xCSI>*
<EOL> end-of-line (can be <CR>, <NL> or <CR><NL>,
depends on system and 'fileformat') *<EOL>*
diff --git a/src/nvim/keymap.c b/src/nvim/keymap.c
index abf016b832..f8ccb79ade 100644
--- a/src/nvim/keymap.c
+++ b/src/nvim/keymap.c
@@ -158,7 +158,6 @@ static const struct key_name_entry {
{ ESC, "Esc" },
{ ESC, "Escape" }, // Alternative name
{ CSI, "CSI" },
- { K_CSI, "xCSI" },
{ '|', "Bar" },
{ '\\', "Bslash" },
{ K_DEL, "Del" },
diff --git a/src/nvim/keymap.h b/src/nvim/keymap.h
index 5a74d1dc00..ec18dc64b5 100644
--- a/src/nvim/keymap.h
+++ b/src/nvim/keymap.h
@@ -220,7 +220,7 @@ enum key_extra {
KE_KINS = 79, // keypad Insert key
KE_KDEL = 80, // keypad Delete key
- KE_CSI = 81, // CSI typed directly
+ KE_CSI = 81, // CSI typed directly (no longer produced by Nvim)
KE_SNR = 82, // <SNR>
KE_PLUG = 83, // <Plug>
KE_CMDWIN = 84, // open command-line window from Command-line Mode
@@ -435,7 +435,6 @@ enum key_extra {
#define K_MOUSELEFT TERMCAP2KEY(KS_EXTRA, KE_MOUSELEFT)
#define K_MOUSERIGHT TERMCAP2KEY(KS_EXTRA, KE_MOUSERIGHT)
-#define K_CSI TERMCAP2KEY(KS_EXTRA, KE_CSI)
#define K_SNR TERMCAP2KEY(KS_EXTRA, KE_SNR)
#define K_PLUG TERMCAP2KEY(KS_EXTRA, KE_PLUG)
#define K_CMDWIN TERMCAP2KEY(KS_EXTRA, KE_CMDWIN)