mirror of
https://github.com/junegunn/vim-easy-align.git
synced 2025-11-11 11:23:49 -05:00
Use function() instead of a forwarding function
This commit is contained in:
@@ -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'))
|
||||||
|
|||||||
Reference in New Issue
Block a user