From 3ab414de1a9591b3c3545124329645ec4621cc60 Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 3 Oct 2017 10:00:16 +0100 Subject: Fix #964 - Remove signs when multiple signs end up on a single line --- test/sign/test_sign_placement.vader | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/sign/test_sign_placement.vader') diff --git a/test/sign/test_sign_placement.vader b/test/sign/test_sign_placement.vader index 69ae91ce..36f34e16 100644 --- a/test/sign/test_sign_placement.vader +++ b/test/sign/test_sign_placement.vader @@ -269,3 +269,14 @@ Execute(It should be possible to clear signs with empty lists): Execute(No exceptions should be thrown when setting signs for invalid buffers): call ale#sign#SetSigns(123456789, [{'lnum': 15, 'col': 2, 'type': 'W', 'text': 'e'}]) + +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. + exec 'sign place 1000347 line=3 name=ALEErrorSign buffer=' . bufnr('') + exec 'sign place 1000348 line=3 name=ALEWarningSign buffer=' . bufnr('') + exec 'sign place 1000349 line=10 name=ALEErrorSign buffer=' . bufnr('') + exec 'sign place 1000350 line=10 name=ALEWarningSign buffer=' . bufnr('') + + call ale#sign#SetSigns(bufnr(''), []) + AssertEqual [], ParseSigns() -- cgit v1.2.3