From 3d73956b9662ef0910e679f9270df5900db8047c Mon Sep 17 00:00:00 2001 From: KillTheMule Date: Mon, 18 Apr 2016 21:26:58 +0200 Subject: Add documentation for disable_char_avail_for_testing, handpicked from https://github.com/vim/vim/commit/6463ca229cb9412581419497924c85fcbfc854ab https://github.com/vim/vim/commit/7823a3bd2eed6ff9e544d201de96710bd5344aaf --- runtime/doc/eval.txt | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit