diff options
author | Alvin Chan <aschan@gmail.com> | 2018-12-31 14:54:36 -0700 |
---|---|---|
committer | Alvin Chan <aschan@gmail.com> | 2018-12-31 14:54:36 -0700 |
commit | f534db1ef944e4af102cfb810eab23460cd4ffdc (patch) | |
tree | 746b21ec52c02661e1d2c9d4d24cdf8193b0ced6 | |
parent | 24fda01a0e50fedba1b3f893142e3da49c36d31b (diff) | |
download | ale-f534db1ef944e4af102cfb810eab23460cd4ffdc.zip |
Replace `trim` with `substitute` for compatibility (Vim <8.0.1630)
-rw-r--r-- | autoload/ale/references.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/references.vim b/autoload/ale/references.vim index dc0b8df2..24267bb4 100644 --- a/autoload/ale/references.vim +++ b/autoload/ale/references.vim @@ -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 |