Use function() instead of a forwarding function

This commit is contained in:
Junegunn Choi
2013-10-13 02:10:33 +09:00
parent 7b82a1e496
commit cb7306341c

View File

@@ -65,9 +65,7 @@ let s:shorthand = {
\ } \ }
if exists("*strwidth") if exists("*strwidth")
function! s:strwidth(str) let s:strwidth = function('strwidth')
return strwidth(a:str)
endfunction
else else
function! s:strwidth(str) function! s:strwidth(str)
return len(split(a:str, '\zs')) return len(split(a:str, '\zs'))