[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 91432f1: Allow creating a new tab from the minibuffer (bug#45072)
From: |
Juri Linkov |
Subject: |
master 91432f1: Allow creating a new tab from the minibuffer (bug#45072) |
Date: |
Thu, 10 Dec 2020 03:28:47 -0500 (EST) |
branch: master
commit 91432f1ec55e125541d5e206402a72dfdef88ed8
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>
Allow creating a new tab from the minibuffer (bug#45072)
* lisp/tab-bar.el (tab-bar-new-tab-to): Select the original window
when selected window is the minibuffer.
---
lisp/tab-bar.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index 2604955..1327bde 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -762,6 +762,8 @@ After the tab is created, the hooks in
(from-tab (tab-bar--tab)))
(when tab-bar-new-tab-choice
+ (when (minibuffer-selected-window)
+ (select-window (minibuffer-selected-window)))
(delete-other-windows)
;; Create a new window to get rid of old window parameters
;; (e.g. prev/next buffers) of old window.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 91432f1: Allow creating a new tab from the minibuffer (bug#45072),
Juri Linkov <=