comparison runtime/doc/eval.txt @ 18116:7f57ea9a4ba8 v8.1.2053

patch 8.1.2053: SafeStateAgain not triggered if callback uses feedkeys() Commit: https://github.com/vim/vim/commit/d103ee78432f9036d243b18dd5aac1263d3b7dc9 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 18 21:15:31 2019 +0200 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().
author Bram Moolenaar <Bram@vim.org>
date Wed, 18 Sep 2019 21:30:03 +0200
parents e59ff7b5d7a7
children 1e5672da6a69
comparison
equal deleted inserted replaced
18115:bd18e9db370e 18116:7f57ea9a4ba8
9058 9058
9059 When {what} is given only characters in this string will be 9059 When {what} is given only characters in this string will be
9060 added. E.g, this checks if the screen has scrolled: > 9060 added. E.g, this checks if the screen has scrolled: >
9061 if state('s') != '' 9061 if state('s') != ''
9062 < 9062 <
9063 These characters indicate the state: 9063 These characters indicate the state, generally indicating that
9064 something is busy:
9064 m halfway a mapping, :normal command, feedkeys() or 9065 m halfway a mapping, :normal command, feedkeys() or
9065 stuffed command 9066 stuffed command
9066 o operator pending or waiting for a command argument 9067 o operator pending or waiting for a command argument
9067 a Insert mode autocomplete active 9068 a Insert mode autocomplete active
9068 x executing an autocommand 9069 x executing an autocommand
9069 w blocked on waiting, e.g. ch_evalexpr() and 9070 w blocked on waiting, e.g. ch_evalexpr() and
9070 ch_read(), ch_readraw() when reading json. 9071 ch_read(), ch_readraw() when reading json.
9071 c callback invoked (repeats for recursiveness up to "ccc") 9072 S not triggering SafeState or SafeStateAgain
9073 c callback invoked, including timer (repeats for
9074 recursiveness up to "ccc")
9072 s screen has scrolled for messages 9075 s screen has scrolled for messages
9073 9076
9074 str2float({expr}) *str2float()* 9077 str2float({expr}) *str2float()*
9075 Convert String {expr} to a Float. This mostly works the same 9078 Convert String {expr} to a Float. This mostly works the same
9076 as when using a floating point number in an expression, see 9079 as when using a floating point number in an expression, see