Skip to content
Snippets Groups Projects
Unverified Commit d6a99c03 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

[vim] v:shell_error can change around redraw!

Patch suggested by Mariusz Atamańczuk
parent f787f7e6
No related branches found
No related tags found
No related merge requests found
......@@ -348,8 +348,9 @@ function! s:execute(dict, command, temps) abort
let command = escaped
endif
execute 'silent !'.command
let exit_status = v:shell_error
redraw!
return s:exit_handler(v:shell_error, command) ? s:collect(a:temps) : []
return s:exit_handler(exit_status, command) ? s:collect(a:temps) : []
endfunction
function! s:execute_tmux(dict, command, temps) abort
......@@ -360,8 +361,9 @@ function! s:execute_tmux(dict, command, temps) abort
endif
call system(command)
let exit_status = v:shell_error
redraw!
return s:exit_handler(v:shell_error, command) ? s:collect(a:temps) : []
return s:exit_handler(exit_status, command) ? s:collect(a:temps) : []
endfunction
function! s:calc_size(max, val, dict)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment