Skip to content

Commit

Permalink
stop auto upload when reuse __EVERVIM_NOTE__ buf. bug fix #303
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkyz81 committed May 3, 2012
1 parent d7ce54d commit c8890b1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions autoload/evervim.vim
Expand Up @@ -195,9 +195,6 @@ function! evervim#createNoteBuf() " {{{
call evervim#markdownBufSetup() call evervim#markdownBufSetup()
endif endif


augroup evervimNote
autocmd!
augroup END
augroup evervimCreate augroup evervimCreate
autocmd! autocmd!
autocmd BufWritePost <buffer> :call evervim#createNote() autocmd BufWritePost <buffer> :call evervim#createNote()
Expand Down Expand Up @@ -253,7 +250,10 @@ function! evervim#noteBufSetup() " {{{
if g:evervim_usemarkdown != '0' if g:evervim_usemarkdown != '0'
call evervim#markdownBufSetup() call evervim#markdownBufSetup()
endif endif

" clear autosave. because when reuse buffer, autosaved(bug fix).
augroup evervimNote
autocmd!
augroup END
endfunction endfunction
"}}} "}}}


Expand Down Expand Up @@ -283,6 +283,7 @@ function! evervim#openClient() " {{{
endif endif
endfunction endfunction
"}}} "}}}

" add command {{{ " add command {{{
" Check OpenBrowser is installed that must be after plugin loaded, so check this. " Check OpenBrowser is installed that must be after plugin loaded, so check this.
if exists(':OpenBrowser') == 2 if exists(':OpenBrowser') == 2
Expand Down

0 comments on commit c8890b1

Please sign in to comment.