Replace trim
with substitute
for compatibility (Vim <8.0.1630)
This commit is contained in:
parent
24fda01a0e
commit
f534db1ef9
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ function! ale#references#HandleTSServerResponse(conn_id, response) abort
|
|||
\ 'filename': l:response_item.file,
|
||||
\ 'line': l:response_item.start.line,
|
||||
\ 'column': l:response_item.start.offset,
|
||||
\ 'match': trim(l:response_item.lineText),
|
||||
\ 'match': substitute(l:response_item.lineText, '^\s*\(.\{-}\)\s*$', '\1', ''),
|
||||
\})
|
||||
endfor
|
||||
|
||||
|
|
Reference in a new issue