Permalink
Browse files

Bug fix: Restore note name highlighting after reload

  • Loading branch information...
1 parent e8d694b commit e47ca92357efd98150f6ffb2027da38a84ebe61e @xolox committed Dec 24, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 notes.vim
View
@@ -3,7 +3,7 @@
" Last Change: December 24, 2010
" URL: http://peterodding.com/code/vim/notes/
" License: MIT
-" Version: 0.7.14
+" Version: 0.7.15
" Support for automatic update using the GLVS plug-in.
" GetLatestVimScripts: 3375 1 :AutoInstall: session.zip
@@ -60,6 +60,7 @@ augroup PluginNotes
au BufReadCmd note:* nested call xolox#notes#shortcut()
au SwapExists * call xolox#notes#swaphack()
au WinEnter * if &ft == 'notes' | call xolox#notes#highlight_names() | endif
+ au BufReadPost * if &ft == 'notes' | unlet! b:notes_names_last_highlighted | endif
au BufUnload * if &ft == 'notes' | call xolox#notes#unload_from_cache() | endif
call s:DefAutoCmd('BufWritePost', g:notes_directory, 'call xolox#notes#cleanup()')
augroup END

0 comments on commit e47ca92

Please sign in to comment.