Skip to content

Commit

Permalink
Change scroll position
Browse files Browse the repository at this point in the history
  • Loading branch information
clemera committed Jan 16, 2021
1 parent c652447 commit ca94b56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selectrum.el
Original file line number Diff line number Diff line change
Expand Up @@ -723,9 +723,9 @@ the update."
(goto-char (max (point) (minibuffer-prompt-end)))
;; Scroll the minibuffer when current prompt exceeds window width.
(let* ((width (window-width)))
(if (< (point) (- width (/ width 4)))
(if (< (point) (- width (/ width 3)))
(set-window-hscroll nil 0)
(set-window-hscroll nil (- (point) (* 3 (/ width 4))))))
(set-window-hscroll nil (- (point) (/ width 3)))))
;; For some reason this resets and thus can't be set in setup hook.
(setq-local truncate-lines t)
(let ((inhibit-read-only t)
Expand Down

0 comments on commit ca94b56

Please sign in to comment.