waycrate / swhkd

Sxhkd clone for Wayland (works on TTY and X11 too)
https://git.sr.ht/~shinyzenith/swhkd
BSD 2-Clause "Simplified" License
690 stars 47 forks source link

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

Closed lavafroth closed 3 weeks ago

lavafroth commented 6 months ago

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 commented 3 weeks ago

superseded by v2 parser.