summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvin Chan <aschan@gmail.com>2018-12-31 14:54:36 -0700
committerAlvin Chan <aschan@gmail.com>2018-12-31 14:54:36 -0700
commitf534db1ef944e4af102cfb810eab23460cd4ffdc (patch)
tree746b21ec52c02661e1d2c9d4d24cdf8193b0ced6
parent24fda01a0e50fedba1b3f893142e3da49c36d31b (diff)
downloadale-f534db1ef944e4af102cfb810eab23460cd4ffdc.zip
Replace `trim` with `substitute` for compatibility (Vim <8.0.1630)
-rw-r--r--autoload/ale/references.vim2
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