File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
" Vim auto-load script
2
2
" Author: Peter Odding <peter@peterodding.com>
3
- " Last Change: July 7 , 2014
3
+ " Last Change: August 4 , 2014
4
4
" URL: http://peterodding.com/code/vim/notes/
5
5
6
6
" Note: This file is encoded in UTF-8 including a byte order mark so
7
7
" that Vim loads the script using the right encoding transparently.
8
8
9
- let g: xolox #notes#version = ' 0.26'
9
+ let g: xolox #notes#version = ' 0.26.1 '
10
10
let g: xolox #notes#url_pattern = ' \<\(mailto:\|javascript:\|\w\{3,}://\)\(\S*\w\)\+/\?'
11
11
let s: scriptdir = expand (' <sfile>:p:h' )
12
12
@@ -438,7 +438,10 @@ function! xolox#notes#delete(bang, title) " {{{1
438
438
call xolox#misc#msg#warn (" notes.vim %s: Failed to delete %s!" , g: xolox #notes#version , filename)
439
439
else
440
440
call xolox#notes#cache_del (filename)
441
- execute ' bdelete' . a: bang . ' ' . bufnr (filename)
441
+ let buffer_number = bufnr (filename)
442
+ if buffer_number >= 0
443
+ execute ' bdelete' . a: bang . ' ' . buffer_number
444
+ endif
442
445
endif
443
446
endif
444
447
endfunction
You can’t perform that action at this time.
0 commit comments