mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-26 04:30:27 +01:00
30726: make shell options passed to emulate stick along with the emulation
This commit is contained in:
parent
ad92cb3203
commit
4b86cc48f7
12 changed files with 287 additions and 41 deletions
|
|
@ -755,7 +755,10 @@ dosavetrap(int sig, int level)
|
|||
newshf->node.flags = shf->node.flags;
|
||||
newshf->funcdef = dupeprog(shf->funcdef, 0);
|
||||
newshf->filename = ztrdup(shf->filename);
|
||||
newshf->emulation = shf->emulation;
|
||||
if (shf->sticky) {
|
||||
newshf->sticky = sticky_emulation_dup(shf->sticky, 0);
|
||||
} else
|
||||
newshf->sticky = 0;
|
||||
if (shf->node.flags & PM_UNDEFINED)
|
||||
newshf->funcdef->shf = newshf;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue