swhkd
swhkd copied to clipboard
fix: do not log the last mode on stack if `@enter`ing an invalid mode
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.