mirror of
https://github.com/junegunn/vim-easy-align.git
synced 2025-11-10 19:03:50 -05:00
Use function() instead of a forwarding function
This commit is contained in:
@@ -65,9 +65,7 @@ let s:shorthand = {
|
||||
\ }
|
||||
|
||||
if exists("*strwidth")
|
||||
function! s:strwidth(str)
|
||||
return strwidth(a:str)
|
||||
endfunction
|
||||
let s:strwidth = function('strwidth')
|
||||
else
|
||||
function! s:strwidth(str)
|
||||
return len(split(a:str, '\zs'))
|
||||
|
||||
Reference in New Issue
Block a user