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 buffer
When the user sets `scroll-conservatively` to a value greater than 100, moving the cursor to `(point-max)` with `(evil-goto-line nil)` results in all text being located above the window start, preventing the user from seeing it. This commit addresses the issue by recentering the window when this specific case occurs. Even though Emacs recenters the screen using `(recenter nil)` when `scroll-conservatively` is less than or equal to 100, it does not emulate Vim's behavior. Therefore, we use `(recenter -1)`, which is similar to Vim's behavior.
- Loading branch information