- commit
- 316c19d4d0a52586ac0b446aa39dff93becdc77b
- parent
- 00893a5d82055c204328718a9e239ef0e5e0f8ad
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2019-02-23 16:00
use explicit copen/close to fix cursor position
Diffstat
| M | autoload/lint.vim | 3 | ++- |
1 files changed, 2 insertions, 1 deletions
diff --git a/autoload/lint.vim b/autoload/lint.vim
@@ -53,10 +53,11 @@ function! lint#Lint() 53 53 let l:results = s:RunLinter(g:lint_prg, g:lint_format) 54 54 call filter(l:results, 'v:val.lnum') 55 55 call s:PlaceMarkers(l:results)56 -1 cwindow57 56 if l:results != [] -1 57 copen 58 58 echon 'Lint found '.len(l:results).' issues' 59 59 else -1 60 cclose 60 61 echon 'Lint OK' 61 62 endif 62 63 endfunction