forked from aniani/vim
patch 9.0.1435: scrolling too many lines when 'wrap' and 'diff' are set
Problem: Scrolling too many lines when 'wrap' and 'diff' are set.
Solution: Only scroll by screenlines for 'diff' when 'wrap' is not set.
(closes #12211)
This commit is contained in:
@@ -1763,7 +1763,7 @@ scrolling_screenlines(int byfold UNUSED)
|
||||
|| (byfold && hasAnyFolding(curwin))
|
||||
# endif
|
||||
# ifdef FEAT_DIFF
|
||||
|| curwin->w_p_diff
|
||||
|| (curwin->w_p_diff && !curwin->w_p_wrap)
|
||||
# endif
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user