branch: externals/mct
commit 527c437bf58983f311368717be5f1846b49af931
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Extend minibuffer file map only when necessary
---
mct.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mct.el b/mct.el
index 4c9e8d2..704f19b 100644
--- a/mct.el
+++ b/mct.el
@@ -1024,7 +1024,8 @@ region.")
(defun mct--minibuffer-local-filename-completion-map ()
"Hook to `minibuffer-setup-hook'."
- (when (eq (mct--completion-category) 'file)
+ (when (and (eq (mct--completion-category) 'file)
+ (not (bound-and-true-p completion-in-region-mode)))
(use-local-map
(make-composed-keymap mct-minibuffer-local-filename-completion-map
(current-local-map)))))