summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-09-09 22:48:40 +0100
committerw0rp <devw0rp@gmail.com>2016-09-09 22:48:40 +0100
commit33b5e30760b4f5ce9561af1251ce56b1ade0d373 (patch)
tree336c70b96e469829922c26897ada9db6994c0d60 /plugin
parentfaf51d7a2221bdfafc18b50c4785034e9276ff70 (diff)
downloadale-33b5e30760b4f5ce9561af1251ce56b1ade0d373.zip
Fix bugs with directory listings and signs when switching tabs.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ale/cursor.vim4
-rw-r--r--plugin/ale/sign.vim4
2 files changed, 7 insertions, 1 deletions
diff --git a/plugin/ale/cursor.vim b/plugin/ale/cursor.vim
index 0159302a..99872664 100644
--- a/plugin/ale/cursor.vim
+++ b/plugin/ale/cursor.vim
@@ -53,6 +53,10 @@ function! ale#cursor#TruncatedEcho(message)
endfunction
function! ale#cursor#EchoCursorWarning()
+ if !exists('b:ale_loclist')
+ return
+ endif
+
let pos = getcurpos()
let index = s:BinarySearch(b:ale_loclist, pos[1], pos[2])
diff --git a/plugin/ale/sign.vim b/plugin/ale/sign.vim
index 29753011..7eb858ba 100644
--- a/plugin/ale/sign.vim
+++ b/plugin/ale/sign.vim
@@ -26,7 +26,9 @@ sign define ALEWarningSign text=-- texthl=ALEWarningSign
" This function will set the signs which show up on the left.
function! ale#sign#SetSigns(loclist)
- sign unplace *
+ let buffer = bufnr('%')
+
+ exec 'sign unplace * buffer=' . buffer
for i in range(0, len(a:loclist) - 1)
let obj = a:loclist[i]