Skip to content

Commit 168d6b4

Browse files
author
skywind3000
committed
improve error handling
1 parent 527fae3 commit 168d6b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/asyncrun.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ function! s:terminal_init(opts)
11291129
let shell = (has('nvim') == 0)? 1 : 0
11301130
let pos = get(a:opts, 'pos', 'bottom')
11311131
let pos = (pos == 'background')? 'hide' : pos
1132-
let cwd = a:opts.cwd
1132+
let cwd = get(a:opts, 'cwd', '')
11331133
let cwd = (cwd != '' && isdirectory(cwd))? cwd : ''
11341134
if get(a:opts, 'safe', get(g:, 'asyncrun_term_safe', 0)) != 0
11351135
let command = s:ScriptWrite(command, 0)

0 commit comments

Comments
 (0)