Skip to content

Commit

Permalink
improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
skywind3000 committed Mar 29, 2021
1 parent 527fae3 commit 168d6b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/asyncrun.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ function! s:terminal_init(opts)
let shell = (has('nvim') == 0)? 1 : 0
let pos = get(a:opts, 'pos', 'bottom')
let pos = (pos == 'background')? 'hide' : pos
let cwd = a:opts.cwd
let cwd = get(a:opts, 'cwd', '')
let cwd = (cwd != '' && isdirectory(cwd))? cwd : ''
if get(a:opts, 'safe', get(g:, 'asyncrun_term_safe', 0)) != 0
let command = s:ScriptWrite(command, 0)
Expand Down

0 comments on commit 168d6b4

Please sign in to comment.