Browse files

Force to split window vertically if split sensibly failed due to thre…

…sold settings.
  • Loading branch information...
1 parent a964f1e commit 00a67f8d13d1d636068ce742b53a181a44b49aff @winfred-lu committed Aug 31, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 vendor/etags-select.el
View
4 vendor/etags-select.el
@@ -318,7 +318,9 @@ to do."
(set-buffer-modified-p nil)
(setq buffer-read-only t)
(setq etags-select-opened-window (selected-window))
- (select-window (split-window-sensibly))
+ (if (one-window-p t)
+ (select-window (split-window-sensibly))
+ (select-window (split-window-vertically)))
(switch-to-buffer etags-select-buffer-name)
(etags-select-mode tagname)))))

0 comments on commit 00a67f8

Please sign in to comment.