File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-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: May 5 , 2013
3
+ " Last Change: May 6 , 2013
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.18.2 '
9
+ let g: xolox #notes#version = ' 0.18.3 '
10
10
let s: scriptdir = expand (' <sfile>:p:h' )
11
11
12
12
call xolox#misc#compat#check (' notes' , 2 )
@@ -220,7 +220,7 @@ function! s:get_visual_selection()
220
220
let [lnum1, col1] = getpos (" '<" )[1 :2 ]
221
221
let [lnum2, col2] = getpos (" '>" )[1 :2 ]
222
222
let lines = getline (lnum1, lnum2)
223
- let lines [-1 ] = lines [-1 ][: col2 - 2 ]
223
+ let lines [-1 ] = lines [-1 ][: col2 - (& selection == ' inclusive ' ? 1 : 2 ) ]
224
224
let lines [0 ] = lines [0 ][col1 - 1 :]
225
225
return join (lines , ' ' )
226
226
endfunction
You can’t perform that action at this time.
0 commit comments