parent
8764be07e2
commit
ca19762e58
@ -228,10 +228,11 @@ function! s:execute(dict, command, temps)
|
|||||||
execute 'silent !'.command
|
execute 'silent !'.command
|
||||||
redraw!
|
redraw!
|
||||||
if v:shell_error
|
if v:shell_error
|
||||||
" Do not print error message on exit status 1
|
" Do not print error message on exit status 1 (no match) or 130 (interrupt)
|
||||||
if v:shell_error > 2
|
if v:shell_error == 2
|
||||||
echohl ErrorMsg
|
echohl ErrorMsg
|
||||||
echo 'Error running ' . command
|
echo 'Error running ' . command
|
||||||
|
echohl None
|
||||||
endif
|
endif
|
||||||
return []
|
return []
|
||||||
else
|
else
|
||||||
|
@ -52,4 +52,5 @@ const (
|
|||||||
exitOk = 0
|
exitOk = 0
|
||||||
exitNoMatch = 1
|
exitNoMatch = 1
|
||||||
exitError = 2
|
exitError = 2
|
||||||
|
exitInterrupt = 130
|
||||||
)
|
)
|
||||||
|
@ -791,7 +791,7 @@ func (t *Terminal) Loop() {
|
|||||||
exit(exitNoMatch)
|
exit(exitNoMatch)
|
||||||
case reqQuit:
|
case reqQuit:
|
||||||
C.Close()
|
C.Close()
|
||||||
exit(exitError)
|
exit(exitInterrupt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
t.placeCursor()
|
t.placeCursor()
|
||||||
|
Loading…
Reference in New Issue
Block a user