diff --git a/eaf.el b/eaf.el index 7d206f1..65b0ee1 100644 --- a/eaf.el +++ b/eaf.el @@ -1270,7 +1270,7 @@ This function works best if paired with a fuzzy search package." (if (file-exists-p browser-history-file-path) (let* ((history-list (mapcar (lambda (h) (when (string-match history-pattern h) - (format "[%s] ⇰ %s" (match-string 1 h) (match-string 2 h)))) + (format "[%s] ⇰ %s" (match-string 1 h) (match-string 2 h)))) (with-temp-buffer (insert-file-contents browser-history-file-path) (split-string (buffer-string) "\n" t)))) (history (completing-read "[EAF/browser] Search || URL || History: " history-list)) @@ -1513,7 +1513,9 @@ Make sure that your smartphone is connected to the same WiFi network as this com (eaf-edit-mode) (eaf--edit-set-header-line) (insert focus-text) - (beginning-of-buffer) + ;; When text line number above + (when (> (line-number-at-pos) 30) + (beginning-of-buffer)) )) (defun eaf--edit-set-header-line ()