diff options
author | ZyX <kp-pav@yandex.ru> | 2017-12-15 11:38:34 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-12-15 11:38:34 +0300 |
commit | fb07391ce46b8bff90ef7ef073b75919a307e64c (patch) | |
tree | 1395d44fbf044d1c138c706e55de2b59364d3312 /runtime/doc/eval.txt | |
parent | c8a5d6181b19009e170a3497a30ce35cf288bddf (diff) | |
download | rneovim-fb07391ce46b8bff90ef7ef073b75919a307e64c.tar.gz rneovim-fb07391ce46b8bff90ef7ef073b75919a307e64c.tar.bz2 rneovim-fb07391ce46b8bff90ef7ef073b75919a307e64c.zip |
window: Fix matchaddpos() and enhance error reporting
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r-- | runtime/doc/eval.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index e337c5d6d5..6c3fd43db0 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -5493,7 +5493,7 @@ matchaddpos({group}, {pos} [, {priority} [, {id} [, {dict}]]]) sets buffer line boundaries to redraw screen. It is supposed to be used when fast match additions and deletions are required, for example to highlight matching parentheses. - + *E5030* *E5031* The list {pos} can contain one of these items: - A number. This whole line will be highlighted. The first line has number 1. @@ -5507,6 +5507,10 @@ matchaddpos({group}, {pos} [, {priority} [, {id} [, {dict}]]]) - A list with three numbers, e.g., [23, 11, 3]. As above, but the third number gives the length of the highlight in bytes. + Entries with zero and negative line numbers are silently + ignored, as well as entries with negative column numbers and + lengths. + The maximum number of positions is 8. Example: > |