diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2012-10-11 20:14:01 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2012-10-11 20:14:01 +0000 |
commit | 4b86cc48f704152ccca13c50bc3acd59b4217ecc (patch) | |
tree | cfae43df67e766bd504da4a287a5e9307c931a60 /Src/signals.c | |
parent | ad92cb3203e5d95be91019633e8f1f5835b12794 (diff) | |
download | zsh-4b86cc48f704152ccca13c50bc3acd59b4217ecc.tar.gz zsh-4b86cc48f704152ccca13c50bc3acd59b4217ecc.tar.xz zsh-4b86cc48f704152ccca13c50bc3acd59b4217ecc.zip |
30726: make shell options passed to emulate stick along with the emulation
Diffstat (limited to 'Src/signals.c')
-rw-r--r-- | Src/signals.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/signals.c b/Src/signals.c index ad688094b..046ee6a4a 100644 --- a/Src/signals.c +++ b/Src/signals.c @@ -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; } |