Replace trim with substitute for compatibility (Vim <8.0.1630)

This commit is contained in:
Alvin Chan 2018-12-31 14:54:36 -07:00
parent 24fda01a0e
commit f534db1ef9

View file

@ -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