aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/keycodes.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-09-22 06:02:48 +0800
committerGitHub <noreply@github.com>2024-09-22 06:02:48 +0800
commite697c1b43dfbeab132fee4149157f7abd08c51a0 (patch)
tree4fb363d573f9606f7314799e03c6ba9e0f5fd0e1 /src/nvim/keycodes.h
parent1d815acd78e5b961302985b80d2b625947902386 (diff)
downloadrneovim-e697c1b43dfbeab132fee4149157f7abd08c51a0.tar.gz
rneovim-e697c1b43dfbeab132fee4149157f7abd08c51a0.tar.bz2
rneovim-e697c1b43dfbeab132fee4149157f7abd08c51a0.zip
fix(paste): improve repeating of pasted text (#30438)
- Fixes 'autoindent' being applied during redo. - Makes redoing a large paste significantly faster. - Stores pasted text in the register being recorded. Fix #28561
Diffstat (limited to 'src/nvim/keycodes.h')
-rw-r--r--src/nvim/keycodes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/keycodes.h b/src/nvim/keycodes.h
index 18af3f87d6..5a7ddd4847 100644
--- a/src/nvim/keycodes.h
+++ b/src/nvim/keycodes.h
@@ -380,6 +380,10 @@ enum key_extra {
#define K_KENTER TERMCAP2KEY('K', 'A') // keypad Enter
#define K_KPOINT TERMCAP2KEY('K', 'B') // keypad . or ,
+// Delimits pasted text (to repeat nvim_paste). Internal-only, not sent by UIs.
+#define K_PASTE_START TERMCAP2KEY('P', 'S') // paste start
+#define K_PASTE_END TERMCAP2KEY('P', 'E') // paste end
+
#define K_K0 TERMCAP2KEY('K', 'C') // keypad 0
#define K_K1 TERMCAP2KEY('K', 'D') // keypad 1
#define K_K2 TERMCAP2KEY('K', 'E') // keypad 2