Explorar o código

Unlet s:marked after execution

This lead to nasty bugs because Startify would take the wrong branch to
open the new buffers.

References #30.
Marco Hinz %!s(int64=12) %!d(string=hai) anos
pai
achega
ae062f2b6f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      autoload/startify.vim

+ 4 - 0
autoload/startify.vim

@@ -380,6 +380,10 @@ function! s:open_buffers(cword) abort
   else
     execute 'normal' a:cword
   endif
+  if exists('s:marked')
+    unlet s:marked
+    unlet s:nmarked
+  endif
 endfunction
 
 " Function: s:close {{{1