mirror of
https://codeberg.org/cage/tinmop/
synced 2025-02-08 07:08:39 +01:00
- prevented crash when hitting backspace after pressing a key that not
belong to any key-chord with the suggestion window not visible.
This commit is contained in:
parent
34407087ef
commit
5b261cd608
@ -260,10 +260,12 @@ be either `:keybinding' or `:string'. the former for key command the latter for
|
||||
((eq :backspace decoded-event) ; delete last command or char
|
||||
(let ((command-before-last (safe-all-but-last-elt command-line)))
|
||||
(setf command-line nil)
|
||||
(if command-before-last
|
||||
(cond
|
||||
(command-before-last
|
||||
(loop for i in command-before-last do
|
||||
(enqueue-command command-window i nil))
|
||||
(win-hide (suggestions-win command-window)))))
|
||||
(enqueue-command command-window i nil)))
|
||||
((suggestions-win command-window)
|
||||
(win-hide (suggestions-win command-window))))))
|
||||
(t
|
||||
(enqueue-command command-window event t))))))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user