Skip to content

Commit 62a96b1

Browse files
committed
Release 0.12.11 including bug fix for saving notes with a bang (issue #13)
1 parent 1ae2312 commit 62a96b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoload/xolox/notes.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
" Vim auto-load script
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: November 15, 2011
3+
" Last Change: November 18, 2011
44
" URL: http://peterodding.com/code/vim/notes/
55

66
" Note: This file is encoded in UTF-8 including a byte order mark so
77
" that Vim loads the script using the right encoding transparently.
88

9-
let g:xolox#notes#version = '0.12.10'
9+
let g:xolox#notes#version = '0.12.11'
1010

1111
function! xolox#notes#shortcut() " {{{1
1212
" The "note:" pseudo protocol is just a shortcut for the :Note command.
@@ -250,7 +250,7 @@ function! xolox#notes#save() abort " {{{1
250250
return
251251
endif
252252
let bang = v:cmdbang ? '!' : ''
253-
execute 'saveas' . bang . ' ' . fnameescape(newpath)
253+
execute 'saveas' . bang fnameescape(newpath)
254254
" XXX If {oldpath} and {newpath} end up pointing to the same file on disk
255255
" yet xolox#misc#path#equals() doesn't catch this, we might end up
256256
" deleting the user's one and only note! One way to circumvent this

0 commit comments

Comments
 (0)