patch 8.2.0424: checking for wrong return value
Problem: Checking for wrong return value. (Tom)
Solution: Invert the check and fix the test.
diff --git a/src/vim9execute.c b/src/vim9execute.c
index 33b6430..9f829d6 100644
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -487,7 +487,7 @@
{
// Turn CTRL-C into an exception.
got_int = FALSE;
- if (throw_exception("Vim:Interrupt", ET_INTERRUPT, NULL) != FAIL)
+ if (throw_exception("Vim:Interrupt", ET_INTERRUPT, NULL) == FAIL)
goto failed;
did_throw = TRUE;
}