aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/globals.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-21 19:37:11 +0800
committerGitHub <noreply@github.com>2022-08-21 19:37:11 +0800
commit5928d5c2f11754e1d2cc383a1568c3664a38207d (patch)
treef694d28f15c81f469413d6c42766ef8a316625b9 /src/nvim/globals.h
parent6b9852cc4188d9ca7bce8e7592dcfca38539c743 (diff)
downloadrneovim-5928d5c2f11754e1d2cc383a1568c3664a38207d.tar.gz
rneovim-5928d5c2f11754e1d2cc383a1568c3664a38207d.tar.bz2
rneovim-5928d5c2f11754e1d2cc383a1568c3664a38207d.zip
vim-patch:9.0.0234: cannot make difference between :normal end and argument char (#19879)
Problem: Cannot make difference between the end of :normal and a character in its argument. Solution: Add the "typebuf_was_empty" flag. (closes vim/vim#10950) https://github.com/vim/vim/commit/8d69637133e17370491b83da8657a15b991c2f76
Diffstat (limited to 'src/nvim/globals.h')
-rw-r--r--src/nvim/globals.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h
index 954b62883e..231220c319 100644
--- a/src/nvim/globals.h
+++ b/src/nvim/globals.h
@@ -705,6 +705,10 @@ EXTERN int recoverymode INIT(= false); // Set to true for "-r" option
// typeahead buffer
EXTERN typebuf_T typebuf INIT(= { NULL, NULL, 0, 0, 0, 0, 0, 0, 0 });
+/// Flag used to indicate that vgetorpeek() returned a char like Esc when the
+/// :normal argument was exhausted.
+EXTERN bool typebuf_was_empty INIT(= false);
+
EXTERN int ex_normal_busy INIT(= 0); // recursiveness of ex_normal()
EXTERN int ex_normal_lock INIT(= 0); // forbid use of ex_normal()
EXTERN int ignore_script INIT(= false); // ignore script input