Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit29757c6

Browse files
author
skywind3000
committed
add try/catch for Ex commands
1 parent42385d5 commit29757c6

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

‎plugin/asyncrun.vim‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: skywind3000 (at) gmail.com, 2016-2023
44
" Homepage: https://github.com/skywind3000/asyncrun.vim
55
"
6-
" Last Modified: 2023/08/21 02:03
6+
" Last Modified: 2023/09/19 18:47
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -1444,7 +1444,7 @@ function! s:terminal_open(opts)
14441444
catch
14451445
redraw
14461446
echohlErrorMsg
1447-
echov:exception
1447+
echo'AsyncRun:' .v:exception
14481448
echohl None
14491449
endtry
14501450
endif
@@ -1866,7 +1866,14 @@ function! s:run(opts)
18661866
lett=s:StringStrip(l:command)
18671867

18681868
ifstrpart(t,0,1)==':'&&g:asyncrun_strict==0
1869-
execstrpart(t,1)
1869+
try
1870+
execstrpart(t,1)
1871+
catch
1872+
redraw
1873+
echohlErrorMsg
1874+
echo'AsyncRun:' .v:exception
1875+
echohl None
1876+
endtry
18701877
return''
18711878
elseifl:runner!=''
18721879
let obj=deepcopy(l:opts)
@@ -2265,7 +2272,7 @@ endfunc
22652272
" asyncrun - version
22662273
"----------------------------------------------------------------------
22672274
function!asyncrun#version()
2268-
return'2.11.20'
2275+
return'2.11.21'
22692276
endfunc
22702277

22712278

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp