aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-21 12:16:33 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-08-21 14:16:16 +0800
commit7ce2acd59be89e5e6d2ac778ad074a9ae42951cd (patch)
tree3e1c882297afabac76ed2de1a22b68e174d52556 /runtime/doc
parenta0b912c6ecd4bbbcf3ebdf7c1d4e60acaa7019cb (diff)
downloadrneovim-7ce2acd59be89e5e6d2ac778ad074a9ae42951cd.tar.gz
rneovim-7ce2acd59be89e5e6d2ac778ad074a9ae42951cd.tar.bz2
rneovim-7ce2acd59be89e5e6d2ac778ad074a9ae42951cd.zip
vim-patch:8.1.2053: SafeStateAgain not triggered if callback uses feedkeys()
Problem: SafeStateAgain not triggered if callback uses feedkeys(). Solution: Check for safe state in the input loop. Make log messages easier to find. Add 'S' flag to state(). https://github.com/vim/vim/commit/d103ee78432f9036d243b18dd5aac1263d3b7dc9 Include misc1.c change from patch 8.1.2062. Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/builtin.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index c57b8637e0..2ce66d8cc2 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -7385,13 +7385,16 @@ state([{what}]) *state()*
added. E.g, this checks if the screen has scrolled: >vim
if state('s') != ''
- These characters indicate the state:
+ These characters indicate the state, generally indicating that
+ something is busy:
m halfway a mapping, :normal command, feedkeys() or
stuffed command
o operator pending or waiting for a command argument
a Insert mode autocomplete active
x executing an autocommand
- c callback invoked (repeats for recursiveness up to "ccc")
+ S not triggering SafeState
+ c callback invoked, including timer (repeats for
+ recursiveness up to "ccc")
s screen has scrolled for messages
stdioopen({opts}) *stdioopen()*