mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
clipboard: suppression exit warning if exit code is >= 128
This is a matching change to939d9053bd
Fixes: 7054 (cherry picked from commit62b5d66e43
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
d3ac249806
commit
65d9407835
@@ -25,7 +25,8 @@ function! s:selection.on_exit(jobid, data, event) abort
|
||||
if self.owner == a:jobid
|
||||
let self.owner = 0
|
||||
endif
|
||||
if a:data != 0
|
||||
" Don't print if exit code is >= 128 ( exit is 128+SIGNUM if by signal (e.g. 143 on SIGTERM))
|
||||
if a:data > 0 && a:data < 128
|
||||
echohl WarningMsg
|
||||
echomsg 'clipboard: error invoking '.get(self.argv, 0, '?').': '.join(self.stderr)
|
||||
echohl None
|
||||
|
Reference in New Issue
Block a user