Skip to content

Commit b3de6d3

Browse files
Support tab-line.
1 parent 32bcdf5 commit b3de6d3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

eaf.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,9 @@ We need calcuate render allocation to make sure no black border around render co
11191119
(let* ((window-edges (window-pixel-edges window))
11201120
(x (nth 0 window-edges))
11211121
(y (+ (nth 1 window-edges)
1122-
(window-header-line-height window)
1122+
(if (version< emacs-version "27.0")
1123+
(window-header-line-height window)
1124+
(window-tab-line-height window))
11231125
(if (and (require 'tab-line nil t)
11241126
tab-line-mode) ; Support emacs 27 tab-line-mode
11251127
(window-tab-line-height window)
@@ -1834,7 +1836,7 @@ This function works best if paired with a fuzzy search package."
18341836
(if history-file-exists
18351837
(mapcar
18361838
(lambda (h) (when (string-match history-pattern h)
1837-
(format "[%s] ⇰ %s" (match-string 1 h) (match-string 2 h))))
1839+
(format "[%s] ⇰ %s" (match-string 1 h) (match-string 2 h))))
18381840
(with-temp-buffer (insert-file-contents browser-history-file-path)
18391841
(split-string (buffer-string) "\n" t)))
18401842
nil)))

0 commit comments

Comments
 (0)