aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authornate <nateozemon@gmail.com>2017-12-04 07:36:03 -0800
committerJustin M. Keyes <justinkz@gmail.com>2018-02-01 02:12:21 +0100
commitdfcd09dc225d7500a3df316193151cafe8bbb644 (patch)
treeb82a739d5587aca3a982fee37c1b792ad91c5e93 /runtime
parent3a5721e91ba890718319213154ba6964c9dca4d2 (diff)
downloadrneovim-dfcd09dc225d7500a3df316193151cafe8bbb644.tar.gz
rneovim-dfcd09dc225d7500a3df316193151cafe8bbb644.tar.bz2
rneovim-dfcd09dc225d7500a3df316193151cafe8bbb644.zip
vim-patch:8.0.0672: synconcealed() changes too often #7887
Problem: Third item of synconcealed() changes too often. (Dominique Pelle) Solution: Reset the sequence number at the start of each line. https://github.com/vim/vim/commit/cc0750dc6e878394ab0fd922b7ea4280918ae406 closes #7589
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt21
1 files changed, 15 insertions, 6 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 37a4962732..767fc133d8 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -7610,12 +7610,21 @@ synconcealed({lnum}, {col}) *synconcealed()*
is 1, the second item contains the text which will be
displayed in place of the concealed text, depending on the
current setting of 'conceallevel' and 'listchars'.
- 3. The third and final item in the list is a unique number
- representing the specific syntax region matched. This
- allows detection of the beginning of a new concealable
- region if there are two consecutive regions with the same
- replacement character. For an example use see
- $VIMRUNTIME/syntax/2html.vim .
+ 3. The third and final item in the list is a number
+ representing the specific syntax region matched in the
+ line. When the character is not concealed the value is
+ zero. This allows detection of the beginning of a new
+ concealable region if there are two consecutive regions
+ with the same replacement character. For an example, if
+ the text is "123456" and both "23" and "45" are concealed
+ and replace by the character "X", then:
+ call returns ~
+ synconcealed(lnum, 1) [0, '', 0]
+ synconcealed(lnum, 2) [1, 'X', 1]
+ synconcealed(lnum, 3) [1, 'X', 1]
+ synconcealed(lnum, 4) [1, 'X', 2]
+ synconcealed(lnum, 5) [1, 'X', 2]
+ synconcealed(lnum, 6) [0, '', 0]
synstack({lnum}, {col}) *synstack()*