diff options
author | Teddy Wing | 2020-09-29 01:08:31 +0200 |
---|---|---|
committer | Teddy Wing | 2020-09-29 01:17:26 +0200 |
commit | b39b957b700e98035dd8aa7608feab71d6181c95 (patch) | |
tree | 064027a08f56b6a06d07af1542f503dfff99b15d /autoload | |
parent | 5b5a30da2230b5cd78434c7195c83bd9e108e744 (diff) | |
download | vim-grappele-b39b957b700e98035dd8aa7608feab71d6181c95.tar.bz2 |
Change v_gG and o_gG to <expr> mappings
Fix visual mode bug where when the cursor is at the top of a visual
selection, pressing `gG` changes the bottom of the visual selection
instead of the top.
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/grappele.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/grappele.vim b/autoload/grappele.vim index c2257d8..423723b 100644 --- a/autoload/grappele.vim +++ b/autoload/grappele.vim @@ -14,7 +14,7 @@ function! grappele#Recall(mode) let l:line = visualmode() . l:line endif - execute 'normal! ' . l:line . 'G' + return l:line . 'G' endif endfunction |