File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
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: 2025/03/24 10:40:26
6
+ " Last Modified: 2025/03/24 10:50:34
7
7
"
8
8
" Run shell command in background and output to quickfix:
9
9
" :AsyncRun[!] [options] {cmd} ...
@@ -979,10 +979,7 @@ 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
- if type (a: new ) == 1
983
- return join (l: data , a: new )
984
- endif
985
- return join (l: data , string (a: new ))
982
+ return join (data, (type (a: new ) == 1 )? a: new : string (a: new ))
986
983
endfunc
987
984
988
985
" Trim leading and tailing spaces
@@ -2344,7 +2341,7 @@ endfunc
2344
2341
" asyncrun - version
2345
2342
" ----------------------------------------------------------------------
2346
2343
function ! asyncrun#version ()
2347
- return ' 2.13.3 '
2344
+ return ' 2.13.4 '
2348
2345
endfunc
2349
2346
2350
2347
You can’t perform that action at this time.
0 commit comments