summaryrefslogtreecommitdiff
path: root/test/sign/test_sign_placement.vader
diff options
context:
space:
mode:
authorStarryLeo <suxggg@gmail.com>2020-03-15 14:58:38 +0800
committerStarryLeo <suxggg@gmail.com>2020-03-15 14:58:38 +0800
commit302ce71931e961e8588ea2e475b1714081ee1831 (patch)
treee52ee377bab82245a87cb42505aca64773387875 /test/sign/test_sign_placement.vader
parentbbe5153fcb36dec9860ced33ae8ff0b5d76ac02a (diff)
downloadale-302ce71931e961e8588ea2e475b1714081ee1831.zip
Fix vim sign priority patch check
With Vim 8.2 released, the previous check method is not accurate enough.
Diffstat (limited to 'test/sign/test_sign_placement.vader')
-rw-r--r--test/sign/test_sign_placement.vader6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sign/test_sign_placement.vader b/test/sign/test_sign_placement.vader
index 80153b22..d8d05b28 100644
--- a/test/sign/test_sign_placement.vader
+++ b/test/sign/test_sign_placement.vader
@@ -68,7 +68,7 @@ Before:
function! ParseSigns()
redir => l:output
- if has('nvim-0.4.2') || (v:version >= 801 && has('patch614'))
+ if has('nvim-0.4.2') || has('patch-8.1.614')
silent sign place group=ale
else
silent sign place
@@ -152,7 +152,7 @@ Execute(The current signs should be set for running a job):
\ ParseSigns()
Execute(Loclist items with sign_id values should be kept):
- if has('nvim-0.4.2') || (v:version >= 801 && has('patch614'))
+ if has('nvim-0.4.2') || has('patch-8.1.614')
exec 'sign place 1000347 group=ale line=3 name=ALEErrorSign buffer=' . bufnr('')
exec 'sign place 1000348 group=ale line=15 name=ALEErrorSign buffer=' . bufnr('')
exec 'sign place 1000349 group=ale line=16 name=ALEWarningSign buffer=' . bufnr('')
@@ -297,7 +297,7 @@ Execute(No exceptions should be thrown when setting signs for invalid buffers):
Execute(Signs should be removed when lines have multiple sign IDs on them):
" We can fail to remove signs if there are multiple signs on one line,
" say after deleting lines in Vim, etc.
- if has('nvim-0.4.2') || (v:version >= 801 && has('patch614'))
+ if has('nvim-0.4.2') || has('patch-8.1.614')
exec 'sign place 1000347 group=ale line=3 name=ALEErrorSign buffer=' . bufnr('')
exec 'sign place 1000348 group=ale line=3 name=ALEWarningSign buffer=' . bufnr('')
exec 'sign place 1000349 group=ale line=10 name=ALEErrorSign buffer=' . bufnr('')