Problem: cursor_correct() checks for 'smoothscroll' with 'wrap' off, a
combination where 'smoothscroll' has no effect.
Solution: Remove the check, adjust_skipcol() already handles the case where
the cursor line just fits in the window.
closes: #20891
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
)
return;
- if (curwin->w_p_sms && !curwin->w_p_wrap)
- {
- // 'smoothscroll' is active
- if (curwin->w_cline_height == curwin->w_height)
- {
- // The cursor line just fits in the window, don't scroll.
- reset_skipcol();
- return;
- }
- // TODO: If the cursor line doesn't fit in the window then only adjust
- // w_skipcol.
- }
-
/*
* Narrow down the area where the cursor can be put by taking lines from
* the top and the bottom until:
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 884,
/**/
883,
/**/