From 09b0d7b944d3e301d1044a50a9f02cb96966bb85 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Thu, 4 Dec 2014 17:32:49 +0900 Subject: [PATCH] Fix undefined variables close #201 --- autoload/EasyMotion/cmigemo.vim | 2 +- autoload/EasyMotion/helper.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/EasyMotion/cmigemo.vim b/autoload/EasyMotion/cmigemo.vim index 4e66387..7c84e19 100644 --- a/autoload/EasyMotion/cmigemo.vim +++ b/autoload/EasyMotion/cmigemo.vim @@ -98,7 +98,7 @@ function! EasyMotion#cmigemo#getMigemoPattern(input) "{{{ return EasyMotion#cmigemo#system('cmigemo -v -w "'.a:input.'" -d "'.s:migemodict.'"') else " Not supported - return input + return a:input endif endfunction "}}} diff --git a/autoload/EasyMotion/helper.vim b/autoload/EasyMotion/helper.vim index 1007ac9..9cbee30 100644 --- a/autoload/EasyMotion/helper.vim +++ b/autoload/EasyMotion/helper.vim @@ -152,7 +152,7 @@ if exists('*strchars') endfunction else function! EasyMotion#helper#strchars(str) - return strlen(substitute(str, ".", "x", "g")) + return strlen(substitute(a:str, ".", "x", "g")) endfunction endif "}}} function! EasyMotion#helper#include_multibyte_char(str) "{{{