aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-31 15:40:01 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-31 15:40:01 +0200
commit8abf717407dbe42fbcec55cfb6f8688d87226e44 (patch)
tree13fe93bbda9612c1d21ff2dcde9a57186c49374c
parent66226ebb28ec14a8c94e04f4dfd3f4ac23bc014d (diff)
downloadEpisodeBrowser-8abf717407dbe42fbcec55cfb6f8688d87226e44.tar.gz
eb.el: Fit window to buffer horizontally.
-rw-r--r--eb.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/eb.el b/eb.el
index e3075dd..5233c9c 100644
--- a/eb.el
+++ b/eb.el
@@ -69,7 +69,10 @@
,open
(eb--fleeting-minor-mode)
(setq eb--fleeting--direction ',dir))
- (run-with-idle-timer 0 nil (lambda (window) (fit-window-to-buffer window)) window)
+ (run-with-idle-timer 0 nil (lambda (window)
+ (let ((fit-window-to-buffer-horizontally t))
+ (fit-window-to-buffer window)))
+ window)
window)))))
(defvar eb--fleeting--buffer nil)