diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-21 10:40:07 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-21 10:40:07 +0100 |
commit | 8d69637133e17370491b83da8657a15b991c2f76 (patch) | |
tree | 6fc2da44d8f79deccf2616ab2082c2c9de393b5b /src/globals.h | |
parent | a7704226a26b95b15bf87d3a3a5128e23e4aaa06 (diff) |
patch 9.0.0234: cannot make difference between :normal end and argument charv9.0.0234
Problem: Cannot make difference between the end of :normal and a character
in its argument.
Solution: Add the "typebuf_was_empty" flag. (closes #10950)
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h index 21fabdbb51..99ecefbdde 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1206,6 +1206,10 @@ EXTERN typebuf_T typebuf // typeahead buffer = {NULL, NULL, 0, 0, 0, 0, 0, 0, 0} #endif ; +// Flag used to indicate that vgetorpeek() returned a char like Esc when the +// :normal argument was exhausted. +EXTERN int typebuf_was_empty INIT(= FALSE); + EXTERN int ex_normal_busy INIT(= 0); // recursiveness of ex_normal() #ifdef FEAT_EVAL EXTERN int in_feedkeys INIT(= 0); // ex_normal_busy set in feedkeys() |