diff options
author | ZyX <kp-pav@yandex.ru> | 2017-07-26 12:31:01 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-07-26 12:31:01 +0300 |
commit | d23c0de0c17a665cf4aff3bf4772a08453c6f1dd (patch) | |
tree | 84f2e5718a37c6e9d2701aae315b57c9ec5dec55 /runtime/doc/eval.txt | |
parent | 0a46ae3c0a7b2ca53ce16c3f5c5ecb8ae7bfee80 (diff) | |
download | rneovim-d23c0de0c17a665cf4aff3bf4772a08453c6f1dd.tar.gz rneovim-d23c0de0c17a665cf4aff3bf4772a08453c6f1dd.tar.bz2 rneovim-d23c0de0c17a665cf4aff3bf4772a08453c6f1dd.zip |
doc: Update documentation
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r-- | runtime/doc/eval.txt | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index b45eceb97a..3a928c97ec 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4723,23 +4723,26 @@ input({opts}) "-complete=" argument. Refer to |:command-completion| for more information. Example: > let fname = input("File: ", "", "file") -< +< *E5400* *E5402* The optional highlight key allows specifying function which will be used for highlighting user input. This function receives user input as its only argument and must return - a list of 3-tuples [hl_start_byte, hl_end_byte + 1, hl_group] + a list of 3-tuples [hl_start_col, hl_end_col + 1, hl_group] where - hl_start_byte is the first highlighted byte, - hl_end_byte is the last highlighted byte (+ 1!), + hl_start_col is the first highlighted column, + hl_end_col is the last highlighted column (+ 1!), hl_group is |:hl| group used for highlighting. *E5403* *E5404* *E5405* *E5406* - Both hl_start_byte and hl_end_byte + 1 must point to the start + Both hl_start_col and hl_end_col + 1 must point to the start of the multibyte character (highlighting must not break - multibyte characters), hl_end_byte + 1 may be equal to the + multibyte characters), hl_end_col + 1 may be equal to the input length. Start column must be in range [0, len(input)), - end column must be in range (hl_start_byte, len(input)], - sections must be ordered so that next hl_start_byte is greater - then or equal to previous hl_end_byte. + end column must be in range (hl_start_col, len(input)], + sections must be ordered so that next hl_start_col is greater + then or equal to previous hl_end_col. + + Currently coloring is disabled when command-line contains + arabic characters. NOTE: This function must not be used in a startup file, for the versions that only run in GUI mode (e.g., the Win32 GUI). |