aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2020-09-29 01:12:15 +0200
committerTeddy Wing2020-09-29 01:28:24 +0200
commit47a6ae90ca533f32576c88b21b988d92d33f865c (patch)
tree392fb0716e8625bc3c27dccc43b04f090b4544c2
parentb39b957b700e98035dd8aa7608feab71d6181c95 (diff)
downloadvim-grappele-47a6ae90ca533f32576c88b21b988d92d33f865c.tar.bz2
grappele#Grappele(): Remove varargs
This function no longer needs any extra arguments.
-rw-r--r--autoload/grappele.vim2
-rw-r--r--plugin/grappele.vim7
2 files changed, 4 insertions, 5 deletions
diff --git a/autoload/grappele.vim b/autoload/grappele.vim
index 423723b..34971dc 100644
--- a/autoload/grappele.vim
+++ b/autoload/grappele.vim
@@ -1,4 +1,4 @@
-function! grappele#Grappele(line, ...)
+function! grappele#Grappele(line)
if a:line !=# 0
let s:line = a:line
endif
diff --git a/plugin/grappele.vim b/plugin/grappele.vim
index f85b2b4..97b81e7 100644
--- a/plugin/grappele.vim
+++ b/plugin/grappele.vim
@@ -10,16 +10,15 @@ vnoremap <silent> <expr> <Plug>GrappeleRecall grappele#Recall('v')
onoremap <silent> <expr> <Plug>GrappeleRecall grappele#ORecall()
if !hasmapto('<Plug>Grappele') || !maparg('G', 'n')
- nnoremap <silent> <expr> G grappele#Grappele(v:count, 'n')
+ nnoremap <silent> <expr> G grappele#Grappele(v:count)
endif
if !hasmapto('<Plug>Grappele') || !maparg('G', 'v')
- vnoremap <silent> <expr> G
- \ grappele#Grappele(v:count, 'v', visualmode())
+ vnoremap <silent> <expr> G grappele#Grappele(v:count)
endif
if !hasmapto('<Plug>Grappele') || !maparg('G', 'o')
- onoremap <silent> <expr> G grappele#Grappele(v:count, 'o')
+ onoremap <silent> <expr> G grappele#Grappele(v:count)
endif
if !hasmapto('<Plug>GrappeleRecall') || !maparg('gG', 'n')