Skip to content

Commit

Permalink
fix: pass the window arg
Browse files Browse the repository at this point in the history
  • Loading branch information
sakurawald committed Dec 9, 2024
1 parent 0472a32 commit 1f8e9b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/vi-mode/window.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
(<= line end-line-num))))

(defun point-inside-window-p (point &optional (window (current-window)))
(line-inside-window-p (line-number-at-point point)))
(line-inside-window-p (line-number-at-point point) window))

(defun window-has-following-lines-p (&optional (window (current-window)))
(let ((end-point (window-end-point window)))
Expand Down Expand Up @@ -89,7 +89,7 @@ The SCROLL-POSITION is influenced by the scrolloff option."
(clear-screens-of-window-list)
(when line-number
(save-column
(goto-line line-number)))
(goto-line line-number)))
(let* ((window (current-window))
(scrolloff (scroll-offset window)))
(case scroll-position
Expand Down

0 comments on commit 1f8e9b9

Please sign in to comment.