Skip to content

Commit

Permalink
extract function
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr committed Sep 22, 2023
1 parent 71d0990 commit c798ae3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/display.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@
(window-point window))
-1))

(defmethod redraw-buffer (implementation (buffer text-buffer) window force)
(defun redraw-buffer-internal (buffer window force)
(assert (eq buffer (window-buffer window)))
(let ((screen (window-screen window)))
(draw-window-to-screen window)
Expand All @@ -554,3 +554,6 @@
(when (or force (required-whole-update-screen-p screen))
(lem-if:force-update-view (implementation) (screen-view screen)))
(update-screen-cache screen buffer)))

(defmethod redraw-buffer (implementation (buffer text-buffer) window force)
(redraw-buffer-internal buffer window force))

0 comments on commit c798ae3

Please sign in to comment.