summaryrefslogtreecommitdiffstats
path: root/src/change.c
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2024-04-02 20:49:45 +0200
committerChristian Brabandt <cb@256bit.org>2024-04-02 20:49:45 +0200
commitcb204e688e5c9d56a78b621ef27c35d91860cb09 (patch)
treef1163b8c64d9b74a8d44ddc1d75a23a975e57264 /src/change.c
parentf1750ca0c2ef91c6e4857655ca8fdf8dd8f5abb8 (diff)
patch 9.1.0258: half-page scrolling broke backward compatibilityv9.1.0258
Problem: Support for 'smoothscroll' in (half-)page scrolling broke backward compatibility and can be made to work better. (after v9.1.215) Solution: Restore the previous cursor and end-of-buffer behavior for half-page scrolling and improve 'smoothscroll' support. (Luuk van Baal) fixes: #14338 closes: #14377 Signed-off-by: Luuk van Baal <luukvbaal@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/change.c')
-rw-r--r--src/change.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/change.c b/src/change.c
index daf4faed57..dacc06fd46 100644
--- a/src/change.c
+++ b/src/change.c
@@ -574,8 +574,7 @@ changed_common(
&& wp->w_topline < lnume
&& win_linetabsize(wp, wp->w_topline,
ml_get(wp->w_topline), (colnr_T)MAXCOL)
- <= wp->w_skipcol + sms_marker_overlap(wp,
- win_col_off(wp) - win_col_off2(wp)))))
+ <= wp->w_skipcol + sms_marker_overlap(wp, -1))))
wp->w_skipcol = 0;
// Check if a change in the buffer has invalidated the cached