Skip to content

Commit 940ed43

Browse files
author
skywind3000
committed
fixed compatibility issue in vim-9.1.1232
1 parent 78dc927 commit 940ed43

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

plugin/asyncrun.vim

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: skywind3000 (at) gmail.com, 2016-2024
44
" Homepage: https://github.com/skywind3000/asyncrun.vim
55
"
6-
" Last Modified: 2024/11/08 14:42:39
6+
" Last Modified: 2025/03/24 10:40:26
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -979,7 +979,10 @@ endfunc
979979
" Replace string
980980
function! s:StringReplace(text, old, new)
981981
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))
983986
endfunc
984987

985988
" Trim leading and tailing spaces
@@ -2341,7 +2344,7 @@ endfunc
23412344
" asyncrun - version
23422345
"----------------------------------------------------------------------
23432346
function! asyncrun#version()
2344-
return '2.13.2'
2347+
return '2.13.3'
23452348
endfunc
23462349

23472350

0 commit comments

Comments
 (0)