mirror of https://codeberg.org/cage/tinmop/
- remove the root of the keychord tree when hitting :backspace.
This commit is contained in:
parent
674ee6b59a
commit
4dd530edb7
|
@ -258,10 +258,12 @@ be either `:keybinding' or `:string'. the former for key command the latter for
|
||||||
((eq :control-right decoded-event) ; suggestion win pagination
|
((eq :control-right decoded-event) ; suggestion win pagination
|
||||||
(move-suggestion-page-right command-window))
|
(move-suggestion-page-right command-window))
|
||||||
((eq :backspace decoded-event) ; delete last command or char
|
((eq :backspace decoded-event) ; delete last command or char
|
||||||
(when-let ((command-before-last (safe-all-but-last-elt command-line)))
|
(let ((command-before-last (safe-all-but-last-elt command-line)))
|
||||||
(setf command-line nil)
|
(setf command-line nil)
|
||||||
|
(if command-before-last
|
||||||
(loop for i in command-before-last do
|
(loop for i in command-before-last do
|
||||||
(enqueue-command command-window i nil))))
|
(enqueue-command command-window i nil))
|
||||||
|
(win-hide (suggestions-win command-window)))))
|
||||||
(t
|
(t
|
||||||
(enqueue-command command-window event t))))))
|
(enqueue-command command-window event t))))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue