Skip to content

Commit

Permalink
Make sure typing non-printing characters in the minibuffer won't
Browse files Browse the repository at this point in the history
breakt it
  • Loading branch information
mwitmer committed Feb 3, 2014
1 parent 82ae11f commit f3a6d09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion module/guile-wm/module/minibuffer.scm
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@
(do-prompt-keymap
(prompt-keymap-with-default
minibuffer-keymap
(lambda (key data) (point-insert data (sym->printable key))))
(lambda (key data)
(or (and=> (sym->printable key) (lambda (p) (point-insert data p)))
data)))
(keystroke-listen! minibuffer-window)
continue-minibuffer confirm-minibuffer cancel-minibuffer
(empty-text-edit-data))))
Expand Down

0 comments on commit f3a6d09

Please sign in to comment.