From ccefe1ae84b38611b726232ac654edd1b44727ae Mon Sep 17 00:00:00 2001 From: haya14busa Date: Tue, 1 Jul 2014 00:02:28 +0900 Subject: [PATCH] Remove an unused argument --- autoload/EasyMotion.vim | 4 ++-- plugin/EasyMotion.vim | 4 +--- t/easymotion_spec.vim | 6 +++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/autoload/EasyMotion.vim b/autoload/EasyMotion.vim index 27bac01..0f24600 100644 --- a/autoload/EasyMotion.vim +++ b/autoload/EasyMotion.vim @@ -1,3 +1,4 @@ +scriptencoding utf-8 " EasyMotion - Vim motions on speed! " " Author: Kim Silkebækken @@ -5,7 +6,6 @@ " Source: https://github.com/Lokaltog/vim-easymotion "============================================================================= " Saving 'cpoptions' {{{ -scriptencoding utf-8 let s:save_cpo = &cpo set cpo&vim " }}} @@ -286,7 +286,7 @@ function! EasyMotion#Repeat(visualmode) " {{{ call s:EasyMotion(re, direction, a:visualmode ? visualmode() : '', is_inclusive) return s:EasyMotion_is_cancelled endfunction " }}} -function! EasyMotion#DotRepeat(visualmode) " {{{ +function! EasyMotion#DotRepeat() " {{{ let cnt = v:count1 " avoid overwriting " Repeat previous '.' motion with previous targets and operator diff --git a/plugin/EasyMotion.vim b/plugin/EasyMotion.vim index c5931cd..a2cdfbc 100644 --- a/plugin/EasyMotion.vim +++ b/plugin/EasyMotion.vim @@ -234,9 +234,7 @@ xnoremap (easymotion-repeat) \ :call EasyMotion#Repeat(1) noremap (easymotion-dotrepeat) - \ :call EasyMotion#DotRepeat(0) -xnoremap (easymotion-dotrepeat) - \ :call EasyMotion#DotRepeat(1) + \ :call EasyMotion#DotRepeat() "}}} " -- Next,Previous Motion {{{ diff --git a/t/easymotion_spec.vim b/t/easymotion_spec.vim index bc44517..aecdd82 100644 --- a/t/easymotion_spec.vim +++ b/t/easymotion_spec.vim @@ -367,11 +367,11 @@ describe 'Default settings' Expect maparg('(easymotion-repeat)', 'v') \ ==# ':call EasyMotion#Repeat(1)' Expect maparg('(easymotion-dotrepeat)', 'n') - \ ==# ':call EasyMotion#DotRepeat(0)' + \ ==# ':call EasyMotion#DotRepeat()' Expect maparg('(easymotion-dotrepeat)', 'o') - \ ==# ':call EasyMotion#DotRepeat(0)' + \ ==# ':call EasyMotion#DotRepeat()' Expect maparg('(easymotion-dotrepeat)', 'v') - \ ==# ':call EasyMotion#DotRepeat(1)' + \ ==# ':call EasyMotion#DotRepeat()' " }}} " Next, Previous motion {{{