File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
- " Vim Swoop 1.1.6
1
+ " Vim Swoop 1.1.7
2
2
3
3
" Copyright (C) 2015 copyright Clément CREPY
4
4
"
@@ -58,6 +58,12 @@ let s:swoopSeparator = "\t"
58
58
" BEGIN / EXIT WORKAROUND
59
59
" =======================
60
60
function ! s: initSwoop ()
61
+ if filereadable (' ./swoopBuf' )
62
+ call delete (' swoopBuf' )
63
+ bd ! swoopBuf
64
+ endif
65
+
66
+
61
67
" echom 'init Swoop'
62
68
let s: beforeSwoopBuf = bufnr (' %' )
63
69
let s: beforeSwoopPos = getpos (' .' )
@@ -227,6 +233,8 @@ endfunction
227
233
228
234
function ! SwoopQuit ()
229
235
" echom ' -> quit'
236
+
237
+ call delete (' swoopBuf' )
230
238
bd ! swoopBuf
231
239
call s: restorePosition ()
232
240
call clearmatches ()
@@ -569,6 +577,5 @@ augroup swoopAutoCmd
569
577
autocmd ! CursorMovedI swoopBuf :call s: cursorMoved ()
570
578
571
579
autocmd ! BufWrite swoopBuf :call SwoopSave ()
572
- autocmd ! BufWinLeave swoopBuf :call delete (' ./swoopBuf' )
573
580
autocmd ! BufWinLeave swoopBuf :call SwoopQuit ()
574
581
augroup END
You can’t perform that action at this time.
0 commit comments