File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 3
3
" Maintainer: skywind3000 (at) gmail.com, 2016-2024
4
4
" Homepage: https://github.com/skywind3000/asyncrun.vim
5
5
"
6
- " Last Modified: 2024/11/08 14:42:39
6
+ " Last Modified: 2025/03/24 10:40:26
7
7
"
8
8
" Run shell command in background and output to quickfix:
9
9
" :AsyncRun[!] [options] {cmd} ...
@@ -979,7 +979,10 @@ endfunc
979
979
" Replace string
980
980
function ! s: StringReplace (text, old, new )
981
981
let l: data = split (a: text , a: old , 1 )
982
- return join (l: data , a: new )
982
+ if type (a: new ) == 1
983
+ return join (l: data , a: new )
984
+ endif
985
+ return join (l: data , string (a: new ))
983
986
endfunc
984
987
985
988
" Trim leading and tailing spaces
@@ -2341,7 +2344,7 @@ endfunc
2341
2344
" asyncrun - version
2342
2345
" ----------------------------------------------------------------------
2343
2346
function ! asyncrun#version ()
2344
- return ' 2.13.2 '
2347
+ return ' 2.13.3 '
2345
2348
endfunc
2346
2349
2347
2350
You can’t perform that action at this time.
0 commit comments