From ded514fcd3b767fe7012849ffddda4d65bab4341 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Fri, 21 Feb 2014 22:37:54 +0900 Subject: [PATCH] Improve type(): avoid the magic numbers --- autoload/EasyMotion.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/EasyMotion.vim b/autoload/EasyMotion.vim index cc17067..257b1c2 100644 --- a/autoload/EasyMotion.vim +++ b/autoload/EasyMotion.vim @@ -779,7 +779,7 @@ function! s:CreateCoordKeyDict(groups, ...) let key = group_key . key "let key = ( ! empty(group_key) ? group_key : key) - if type(item) == 3 " List + if type(item) == type([]) " List " Destination coords " The key needs to be zero-padded in order to @@ -1008,7 +1008,7 @@ function! s:PromptUser(groups) "{{{ let target = a:groups[char] - if type(target) == 3 + if type(target) == type([]) " Return target coordinates return target else @@ -1025,7 +1025,7 @@ function! s:DotPromptUser(groups) "{{{ let target = a:groups[char] - if type(target) == 3 + if type(target) == type([]) " Return target coordinates return target else