swhkd icon indicating copy to clipboard operation
swhkd copied to clipboard

fix: do not log the last mode on stack if `@enter`ing an invalid mode

Open lavafroth opened this issue 10 months ago • 0 comments

Upon coming across an undefined mode entered using the @enter statement, the daemon erroneously states that it is entering the last mode on the mode stack. This PR uses a functional approach instead of the iterative approach to keep the behavior local to the conditional branch.

lavafroth avatar Apr 09 '24 14:04 lavafroth