Skip to content

Commit

Permalink
Remove unnecessary parameter from ninja_strike
Browse files Browse the repository at this point in the history
  • Loading branch information
charlespascoe committed Oct 29, 2022
1 parent 46f331d commit 3eb9b4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/ninja-feet.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
" Keep track of the current cursor position in the active buffer
au CursorMoved,InsertLeave,BufEnter * let s:curpos = getpos('.')

fun! s:ninja_strike(curpos, direction, operator, opfunc, mode)
fun! s:ninja_strike(direction, operator, opfunc, mode)
let mode = a:mode == 'line' ? "'" : "`"
let reg = v:register == '"' ? '' : '"'.v:register
let inclusive_toggle = ''
Expand Down Expand Up @@ -44,7 +44,7 @@ endfun
fun! s:map_expr(direction, type, opfunc)
" opfunc is passed as an argument since locally-scoped variables seem to
" have issues in partial functions
set opfunc=funcref('s:ninja_strike',[getpos('.'),a:direction,v:operator,a:opfunc])
set opfunc=funcref('s:ninja_strike',[a:direction,v:operator,a:opfunc])
return "\<Esc>\"".v:register."g@".v:count1.a:type
endfun

Expand Down

0 comments on commit 3eb9b4f

Please sign in to comment.