fix spec for bi-directional t motion

This commit is contained in:
haya14busa 2015-06-28 22:57:06 +09:00
parent b10ed8fcd1
commit 15fc017ed1

View File

@ -13,7 +13,6 @@ set cpo&vim
let s:TRUE = !0 let s:TRUE = !0
let s:FALSE = 0 let s:FALSE = 0
let s:DIRECTION = { 'forward': 0, 'backward': 1, 'bidirection': 2} let s:DIRECTION = { 'forward': 0, 'backward': 1, 'bidirection': 2}
lockvar s:TRUE s:FALSE
" Init: {{{ " Init: {{{
@ -1230,7 +1229,7 @@ function! s:EasyMotion(regexp, direction, visualmode, is_inclusive, ...) " {{{
" Handle bi-directional t motion {{{ " Handle bi-directional t motion {{{
if s:flag.bd_t == 1 if s:flag.bd_t == 1
let regexp = s:convert_t_regexp(a:regexp, 1) "backward let regexp = s:convert_t_regexp(a:regexp, 0) "forward
else else
let regexp = a:regexp let regexp = a:regexp
endif endif
@ -1275,7 +1274,7 @@ function! s:EasyMotion(regexp, direction, visualmode, is_inclusive, ...) " {{{
" Handle bidirection "{{{ " Handle bidirection "{{{
" For bi-directional t motion {{{ " For bi-directional t motion {{{
if s:flag.bd_t == 1 if s:flag.bd_t == 1
let regexp = s:convert_t_regexp(a:regexp, 0) "forward let regexp = s:convert_t_regexp(a:regexp, 1) "backward
endif endif
"}}} "}}}
" Reconstruct match dict " Reconstruct match dict