Skip to content

Commit

Permalink
vikitasks#OnLeave(): Make sure to scan changed buffers on leave
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtom committed Jan 29, 2015
1 parent ae75810 commit f0e1f69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion autoload/vikitasks.vim
@@ -1,7 +1,7 @@
" @Author: Tom Link (mailto:micathom AT gmail com?subject=[vim])
" @Website: http://www.vim.org/account/profile.php?user_id=4037
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Revision: 2015
" @Revision: 2018

scriptencoding utf-8

Expand Down Expand Up @@ -1690,6 +1690,7 @@ function! vikitasks#OnLeave(w) "{{{3
for b in keys(s:changed_buffers)
exec 'hide buffer' b
update
call vikitasks#ScanCurrentBuffer()
endfor
finally
exec 'hide buffer' bn
Expand Down
4 changes: 2 additions & 2 deletions plugin/vikitasks.vim
Expand Up @@ -4,7 +4,7 @@
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2009-12-13.
" @Last Change: 2015-01-19.
" @Revision: 329
" @Revision: 330
" GetLatestVimScripts: 2894 0 :AutoInstall: vikitasks.vim
" Search for task lists and display them in a list

Expand All @@ -20,7 +20,7 @@ endif
if !exists('g:loaded_trag') || g:loaded_trag < 102
runtime plugin/trag.vim
if !exists('g:loaded_trag') || g:loaded_trag < 102
echoerr 'trag >= 0.102 is required'
echoerr 'trag >= 1.02 is required'
finish
endif
endif
Expand Down

0 comments on commit f0e1f69

Please sign in to comment.