summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-04-23 06:38:53 +0800
committerGitHub <noreply@github.com>2026-04-22 22:38:53 +0000
commitfd2ea2742536a3bd7711190d94224008d7ca1e84 (patch)
tree20d04374dbcd809d180baa966333196c5b99f9b1 /src
parent82198d0a6622c750b0b86b721998b00ccf3e2b23 (diff)
vim-patch:9.2.0388: strange indent in update_topline() (#39324)
Problem: strange indent in update_topline() Solution: Fix the indentation (zeertzjq) closes: vim/vim#20033 https://github.com/vim/vim/commit/f194676c936d9f3a8479a72afbbe9f244039e27e
Diffstat (limited to 'src')
-rw-r--r--src/nvim/move.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c
index 99b1e73e32..01c98b95f1 100644
--- a/src/nvim/move.c
+++ b/src/nvim/move.c
@@ -408,9 +408,8 @@ void update_topline(win_T *wp)
if ((wp->w_cursor.lnum >= wp->w_botline - *so_ptr || win_lines_concealed(wp))) {
lineoff_T loff;
- // Cursor is (a few lines) above botline, check if there are
- // 'scrolloff' window lines below the cursor. If not, need to
- // scroll.
+ // Cursor is (a few lines) above botline, check if there are 'scrolloff'
+ // window lines below the cursor. If not, need to scroll.
int n = eof_pressure ? 0 : wp->w_empty_rows;
loff.lnum = wp->w_cursor.lnum;
// In a fold go to its last line.