From 02b1be7160051610a542764ec392e3a50f23fb5a Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Fri, 23 Mar 2018 23:53:05 +0800 Subject: Avoid entering line-mode after exit minibuffer * exwm-input.el (exwm-input--on-pre-command): Keys should be forwarded to the X window (if its Emacs window is currently selected) after exiting the minibuffer. --- exwm-input.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exwm-input.el b/exwm-input.el index 4c1ce00b1200..504307768c2d 100644 --- a/exwm-input.el +++ b/exwm-input.el @@ -902,7 +902,8 @@ where both ORIGINAL-KEY and SIMULATED-KEY are key sequences." (defun exwm-input--on-pre-command () "Run in `pre-command-hook'." - (setq exwm-input--during-command t)) + (unless (eq this-command #'exit-minibuffer) + (setq exwm-input--during-command t))) (defun exwm-input--on-post-command () "Run in `post-command-hook'." -- cgit 1.4.1