Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue: No visible text when cursor is moved to the end of the buffer
When the user sets `scroll-conservatively` to a value greater than 100, moving the cursor to `(point-max)` with `(evil-goto-line nil)` causes all text to be positioned above the window start, making it invisible to the user. This commit resolves the issue by recentering the window in this specific case. While Emacs recenters the screen using `(recenter nil)` when `scroll-conservatively` is less than or equal to 100, this behavior does not match Vim's. To align with Vim's behavior, we use `(recenter -1)`, regardless of the value of `scroll-conservatively`.
- Loading branch information