When text too long, just to beginning of buffer.

master
Andy Stewart 6 years ago
parent 1f14e7a0ee
commit d78a7411e5
  1. 6
      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 ()

Loading…
Cancel
Save