summary refs log tree commit diff
path: root/src/eval.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/eval.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/eval.c b/src/eval.c
index 6a65d00..514922e 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -114,12 +114,13 @@ STATIC const struct builtincmd bltin = {
 INCLUDE "eval.h"
 
 EXITRESET {
-	evalskip = 0;
-	loopnest = 0;
 	if (savestatus >= 0) {
-		exitstatus = savestatus;
+		if (exception == EXEXIT || evalskip == SKIPFUNCDEF)
+			exitstatus = savestatus;
 		savestatus = -1;
 	}
+	evalskip = 0;
+	loopnest = 0;
 }
 #endif
 
@@ -318,7 +319,7 @@ out:
 
 	if (flags & EV_EXIT) {
 exexit:
-		exraise(EXEXIT);
+		exraise(EXEND);
 	}
 
 	popstackmark(&smark);
01-27 14:18:20 -0500'>2021-01-27Change default timestamp format to %XJune McEnroe 2021-01-27Add toggleable display of timestampsJune McEnroe 2021-01-26Only list up until scroll position with M-lJune McEnroe 2021-01-26Preserve scroll position across reflowsJune McEnroe 2021-01-26Add numbers to buffer linesJune McEnroe 2021-01-26Rename and move scroll functions closer to where they are usedJune McEnroe 2021-01-26Factor out windowReflowJune McEnroe 2021-01-26Use Warm heat for replies to user-initiated commandsJune McEnroe 2021-01-26Clarify configuration path interpretationsJune McEnroe 2021-01-26Tighten up XDG base directory path handlingJune McEnroe 2021-01-26Expand the opening paragraph of the manualJune McEnroe 2021-01-25Disable notify in restricted modeJune McEnroe 2021-01-25Don't print timestamps for blank lines in bufferListJune McEnroe 2021-01-25Do not copy time to wrapped linesJune McEnroe 2021-01-25Add protocol coverage to non-features listJune McEnroe 2021-01-25Move mention of pledge(2) and unveil(2) to READMEJune McEnroe 2021-01-23Preserve order of filters when removingJune McEnroe 2021-01-23Fix /unignore commandJune McEnroe 2021-01-23Remove use of "%n" to appease de RaadtJune McEnroe 2021-01-23Drop filesystem access iff possibleKlemens Nanni 2021-01-23Drop exec capability iff restrictedKlemens Nanni 2021-01-23Drop network capability after ircConnect()Klemens Nanni 2021-01-23Call pledge(2) after unveil(2)Klemens Nanni 2021-01-23Separate kiosk mode from restrict modeJune McEnroe 2021-01-21Simplify windowUpdate loops and factor out windowTopJune McEnroe 2021-01-21Document that M-l shows timestampsJune McEnroe 2021-01-19Don't lose swapped window when navigating to current bufferJeremy O'Brien 2021-01-19Use Warm heat for manually inserted blank linesJune McEnroe 2021-01-18Add example tmux(1) configKlemens Nanni 2021-01-17Use Warm heat for blank linesJune McEnroe 2021-01-16Add -I highlight option and /highlightJune McEnroe