Skip to content

Commit

Permalink
Merge pull request #2 from presuku/fix-multi-line-selection
Browse files Browse the repository at this point in the history
Fix column position of end of multi line selection.
  • Loading branch information
haya14busa committed Dec 10, 2014
2 parents 5b177c9 + 16937dc commit b365c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/asterisk.vim
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function! s:get_selected_text(...) abort
else
let lines = [getline(begin[0])[begin[1]-1 :]]
\ + (end[0] - begin[0] < 2 ? [] : getline(begin[0]+1, end[0]-1))
\ + [getline(end[0])[: end[1]]]
\ + [getline(end[0])[: end[1]-1]]
endif
endif
return join(lines, "\n") . (mode ==# "V" ? "\n" : '')
Expand Down

0 comments on commit b365c6c

Please sign in to comment.