diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-16 13:30:33 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-16 13:30:33 +0000 |
commit | a9725221ac4650b7e9219bf6e3682826fe2e0096 (patch) | |
tree | 893ca68160127bb366bf61a6795cd60d55ed51b3 /runtime | |
parent | fa1a45705995f16ee7e69434c772107a3ddeeebd (diff) |
patch 8.2.4107: script context not restored after using <ScriptCmd>v8.2.4107
Problem: Script context not restored after using <ScriptCmd>.
Solution: Also restore context when not in a script. (closes #9536)
Add the 'c' flag to feedkeys() to be able to test this.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/builtin.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 2605f6d3b6..9029685f5d 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -2394,6 +2394,9 @@ feedkeys({string} [, {mode}]) *feedkeys()* Note that if you manage to call feedkeys() while executing commands, thus calling it recursively, then all typeahead will be consumed by the last call. + 'c' Remove any script context when executing, so that + legacy script syntax applies, "s:var" does not work, + etc. '!' When used with 'x' will not end Insert mode. Can be used in a test when a timer is set to exit Insert mode a little later. Useful for testing CursorHoldI. |