Use "normal gv" to restore visual selection

This commit is contained in:
Kim Silkebækken 2011-03-28 22:46:32 +02:00
parent 49a4795a86
commit 7948d6ca47

View File

@ -361,7 +361,7 @@
" Restore cursor position/selection
if ! empty(a:visualmode)
silent exec 'normal! `<' . a:visualmode . '`>'
silent exec 'normal! gv'
else
call setpos('.', [0, orig_pos[0], orig_pos[1]])
endif