diff options
Diffstat (limited to 'bin/sh')
-rw-r--r-- | bin/sh/histedit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c index 26d46a8..7ebe5d8 100644 --- a/bin/sh/histedit.c +++ b/bin/sh/histedit.c @@ -232,6 +232,7 @@ histcmd(int argc, char **argv) } argc -= optind, argv += optind; + savehandler = handler; /* * If executing... */ @@ -242,7 +243,6 @@ histcmd(int argc, char **argv) * Catch interrupts to reset active counter and * cleanup temp files. */ - savehandler = handler; if (setjmp(jmploc.loc)) { active = 0; if (editfile) @@ -399,6 +399,7 @@ histcmd(int argc, char **argv) --active; if (displayhist) displayhist = 0; + handler = savehandler; return 0; } |