Permalink
Browse files

stop auto upload when reuse __EVERVIM_NOTE__ buf. bug fix #303

  • Loading branch information...
1 parent d7ce54d commit c8890b10991414f8b40828d5039f368be6f03cbd @kakkyz81 committed May 3, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 autoload/evervim.vim
@@ -195,9 +195,6 @@ function! evervim#createNoteBuf() " {{{
call evervim#markdownBufSetup()
endif
- augroup evervimNote
- autocmd!
- augroup END
augroup evervimCreate
autocmd!
autocmd BufWritePost <buffer> :call evervim#createNote()
@@ -253,7 +250,10 @@ function! evervim#noteBufSetup() " {{{
if g:evervim_usemarkdown != '0'
call evervim#markdownBufSetup()
endif
-
+ " clear autosave. because when reuse buffer, autosaved(bug fix).
+ augroup evervimNote
+ autocmd!
+ augroup END
endfunction
"}}}
@@ -283,6 +283,7 @@ function! evervim#openClient() " {{{
endif
endfunction
"}}}
+
" add command {{{
" Check OpenBrowser is installed that must be after plugin loaded, so check this.
if exists(':OpenBrowser') == 2

0 comments on commit c8890b1

Please sign in to comment.