diff options
author | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-04-18 21:26:58 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-04-25 06:34:28 -0400 |
commit | 3d73956b9662ef0910e679f9270df5900db8047c (patch) | |
tree | 1d0f197bdbb5bfda3279579d7d3254dcdb4d6145 | |
parent | 11fd9655542fd2676e13d00791b4bc9e96772300 (diff) | |
download | rneovim-3d73956b9662ef0910e679f9270df5900db8047c.tar.gz rneovim-3d73956b9662ef0910e679f9270df5900db8047c.tar.bz2 rneovim-3d73956b9662ef0910e679f9270df5900db8047c.zip |
Add documentation for disable_char_avail_for_testing, handpicked from
https://github.com/vim/vim/commit/6463ca229cb9412581419497924c85fcbfc854ab
https://github.com/vim/vim/commit/7823a3bd2eed6ff9e544d201de96710bd5344aaf
-rw-r--r-- | runtime/doc/eval.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index e341a2247a..14767c4412 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1838,6 +1838,7 @@ dictwatcherdel( {dict}, {pattern}, {callback}) did_filetype() Number TRUE if FileType autocommand event used diff_filler( {lnum}) Number diff filler lines about {lnum} diff_hlID( {lnum}, {col}) Number diff highlighting at {lnum}/{col} +disable_char_avail_for_testing({expr}) none test without typeahead empty( {expr}) Number TRUE if {expr} is empty escape( {string}, {chars}) String escape {chars} in {string} with '\' eval( {string}) any evaluate {string} into its value @@ -2853,6 +2854,13 @@ diff_hlID({lnum}, {col}) *diff_hlID()* The highlight ID can be used with |synIDattr()| to obtain syntax information about the highlighting. +disable_char_avail_for_testing({expr}) + When {expr} is 1 the internal char_avail() function will + return FALSE. When {expr} is 0 the char_avail() function will + function normally. + Only use this for a test where typeahead causes the test not + to work. E.g., to trigger the CursorMovedI autocommand event. + empty({expr}) *empty()* Return the Number 1 if {expr} is empty, zero otherwise. A |List| or |Dictionary| is empty when it does not have any |