diff options
author | Teddy Wing | 2020-09-29 01:31:17 +0200 |
---|---|---|
committer | Teddy Wing | 2020-09-29 01:34:07 +0200 |
commit | f8bbf6e991d6a5d9768715c0cc915875bc9d9bc9 (patch) | |
tree | bf7bce33805b8e3f07381d517b32470c7eb1b730 /autoload | |
parent | 145c155e419fdcc73129771d8fbb3c32a77295a8 (diff) | |
download | vim-grappele-f8bbf6e991d6a5d9768715c0cc915875bc9d9bc9.tar.bz2 |
grappele#Recall(): Remove special handling for visual mode
Now that this is an `<expr>` mapping, we don't need any special handling
for visual mode as this will be taken care of automatically.
Remove the `mode` argument as it's no longer used.
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/grappele.vim | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/autoload/grappele.vim b/autoload/grappele.vim index 34971dc..e111409 100644 --- a/autoload/grappele.vim +++ b/autoload/grappele.vim @@ -6,15 +6,9 @@ function! grappele#Grappele(line) return 'G' endfunction -function! grappele#Recall(mode) +function! grappele#Recall() if exists('s:line') - let l:line = s:line - - if a:mode ==# 'v' - let l:line = visualmode() . l:line - endif - - return l:line . 'G' + return s:line . 'G' endif endfunction |