Permalink
Browse files

bug fix for saving a note with bang.

  • Loading branch information...
1 parent 0b06f72 commit 1ae231259c898df67a361186e5e30e72aae8c9a4 @talek talek committed Nov 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/xolox/notes.vim
View
@@ -250,7 +250,7 @@ function! xolox#notes#save() abort " {{{1
return
endif
let bang = v:cmdbang ? '!' : ''
- execute 'saveas' bang fnameescape(newpath)
+ execute 'saveas' . bang . ' ' . fnameescape(newpath)
" XXX If {oldpath} and {newpath} end up pointing to the same file on disk
" yet xolox#misc#path#equals() doesn't catch this, we might end up
" deleting the user's one and only note! One way to circumvent this

0 comments on commit 1ae2312

Please sign in to comment.