summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-18 21:15:31 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-18 21:15:31 +0200
commitd103ee78432f9036d243b18dd5aac1263d3b7dc9 (patch)
tree5b63ac38b27bdf3459ef73f82eff2b2376da41c1 /runtime
parent7a9bd7c1e0ce1baf5a02daf36eeae3638aa315c7 (diff)
patch 8.1.2053: SafeStateAgain not triggered if callback uses feedkeys()v8.1.2053
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().
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 7806120d6a..0621966659 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -9060,7 +9060,8 @@ state([{what}]) *state()*
added. E.g, this checks if the screen has scrolled: >
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
@@ -9068,7 +9069,9 @@ state([{what}]) *state()*
x executing an autocommand
w blocked on waiting, e.g. ch_evalexpr() and
ch_read(), ch_readraw() when reading json.
- c callback invoked (repeats for recursiveness up to "ccc")
+ S not triggering SafeState or SafeStateAgain
+ c callback invoked, including timer (repeats for
+ recursiveness up to "ccc")
s screen has scrolled for messages
str2float({expr}) *str2float()*