From 16937dca1dabcd4133714997d9846b0172d0e586 Mon Sep 17 00:00:00 2001 From: presuku Date: Wed, 10 Dec 2014 13:58:15 +0900 Subject: [PATCH] Fix column position of end of multi line selection. --- autoload/asterisk.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/asterisk.vim b/autoload/asterisk.vim index c806e95..1b58a68 100644 --- a/autoload/asterisk.vim +++ b/autoload/asterisk.vim @@ -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" : '')