[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.

This commit is contained in:
Chayan Deb 2025-01-17 11:42:59 +05:30
parent 378c2ea115
commit 24bfb5b363
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}