aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/keymap.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-09-25 10:30:20 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-10-01 15:22:48 -0300
commit1143b416ab7d8bb1707dab2be2cd9e191f9a03e4 (patch)
treea244c0f5a5b8845b4b8d1dc55ef58420ae720658 /src/nvim/keymap.h
parentc1edd0799000956b8bd23cbc49a4b015e117879e (diff)
downloadrneovim-1143b416ab7d8bb1707dab2be2cd9e191f9a03e4.tar.gz
rneovim-1143b416ab7d8bb1707dab2be2cd9e191f9a03e4.tar.bz2
rneovim-1143b416ab7d8bb1707dab2be2cd9e191f9a03e4.zip
tui: Don't use 'pastetoggle' for automatic pasting
Add a new special key that can be used by UIs to toggle the 'paste' option and use it in the TUI instead of the user's 'pastetoggle' value. Close #2843 #2092
Diffstat (limited to 'src/nvim/keymap.h')
-rw-r--r--src/nvim/keymap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/keymap.h b/src/nvim/keymap.h
index 38b96b1b8c..119bff943a 100644
--- a/src/nvim/keymap.h
+++ b/src/nvim/keymap.h
@@ -247,6 +247,8 @@ enum key_extra {
, KE_FOCUSGAINED /* focus gained */
, KE_FOCUSLOST /* focus lost */
, KE_EVENT // event
+ , KE_PASTE // special key to toggle the 'paste' option.
+ // sent only by UIs
};
/*
@@ -437,6 +439,7 @@ enum key_extra {
#define K_CURSORHOLD TERMCAP2KEY(KS_EXTRA, KE_CURSORHOLD)
#define K_EVENT TERMCAP2KEY(KS_EXTRA, KE_EVENT)
+#define K_PASTE TERMCAP2KEY(KS_EXTRA, KE_PASTE)
/* Bits for modifier mask */
/* 0x01 cannot be used, because the modifier must be 0x02 or higher */