From 24bfb5b3637b8b7a1d969981e9238d633bc9f4cd Mon Sep 17 00:00:00 2001 From: Chayan Deb Date: Fri, 17 Jan 2025 11:42:59 +0530 Subject: [PATCH] [Bugfix]: Fixed an issue where the bottom statusbar showed the green zsh: command not found: Draw indicatior when the user enters and exits wire-drawing mode without actually drawing a wire. --- src/callback.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/callback.c b/src/callback.c index c0e65b64..606f95bb 100644 --- a/src/callback.c +++ b/src/callback.c @@ -2772,6 +2772,9 @@ int rstate; /* (reduced state, without ShiftMask) */ } /* stuff that can be done reentrantly ... */ tclsetvar("tclstop", "1"); /* stop simulation if any running */ + if(xctx->ui_state2 & MENUSTARTWIRE) { + xctx->ui_state2 &= ~MENUSTARTWIRE; + } if(tclgetboolvar("persistent_command") && (xctx->last_command & STARTWIRE)) { xctx->last_command &= ~STARTWIRE; }