mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
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 vim/vim#12211)
38d867f041
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -1320,7 +1320,7 @@ static int scrolling_screenlines(bool byfold)
|
||||
{
|
||||
return (curwin->w_p_wrap && curwin->w_p_sms)
|
||||
|| (byfold && hasAnyFolding(curwin))
|
||||
|| curwin->w_p_diff;
|
||||
|| (curwin->w_p_diff && !curwin->w_p_wrap);
|
||||
}
|
||||
|
||||
/// Scroll the current window up by "line_count" logical lines. "CTRL-E"
|
||||
|
Reference in New Issue
Block a user