1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 04:30:27 +01:00
zsh/Completion/Base/Core
Peter Stephenson d067ebcacd 33876: etc.: Separate errors and keyboards interrupts
Combination of 12 commits from interrupt_abort branch.

Basic strategy is to introduce bits to errflag and to set and
reset them separately.

Remove interrupt status on return to main keymap.

Turn off ERRFLAG_INT for always block.

Restore bit thereafter: we probably need a new variable in order
to allow user interrupts to be reset in the always block.

Add TRY_BLOCK_INTERRUPT

This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too.

Ensure propagation of SIGINT from exited job.

If received by foreground job, shell uses ERRFLAG_INT, not
ERRFLAG_ERROR, to set the new state.

Reset errflag before precmd()

Add always block in _main_completion to fix ZLS_COLORS

Ensures we get the right state of $ZLS_COLORS at the end of _main_complete
even if there's an interrupt.  However, the "right state" is a bit messy
as it depends on styles.
2014-12-11 09:41:17 +00:00
..
.distfiles 33047: use git to simplify massively source distribution file selection 2014-08-23 21:01:58 +01:00
_all_labels 18299: allow _next_tags to work with nested tag loops 2003-02-26 16:35:55 +00:00
_description 32435: improved quoting for ignore-line completion style 2014-02-26 20:39:11 +00:00
_dispatch users/15621: compdef -p/-P <pat>=<service> 2010-12-06 17:23:04 +00:00
_main_complete 33876: etc.: Separate errors and keyboards interrupts 2014-12-11 09:41:17 +00:00
_message make _message inhibit insertion of matches unless there are faked ones (16710) 2002-02-25 09:16:25 +00:00
_next_label 18299: allow _next_tags to work with nested tag loops 2003-02-26 16:35:55 +00:00
_normal 26746: tweak history modifier completion 2009-03-17 10:03:23 +00:00
_requested add -x option (to be passed on to compadd) to _description and friends; make _message respect any -[12VJ] options it gets, adding the message to that group (16609) 2002-02-12 13:37:00 +00:00
_setup 14509: ZLS_COLOURS/ZLS_COLORS consistency 2001-05-28 16:01:01 +00:00
_tags 20254: restrict scope of the default tag-order to fix a problem with cdrecord 2004-08-11 11:57:04 +00:00
_wanted 18472: spelling corrections 2003-04-25 11:18:50 +00:00