mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 9.0.0751: 'scrolloff' does not work well with 'smoothscroll'
Problem: 'scrolloff' does not work well with 'smoothscroll'. Solution: Make positioning the cursor a bit better. Rename functions.
This commit is contained in:
@@ -150,7 +150,7 @@ coladvance2(
|
||||
|
||||
if ((addspaces || finetune) && !VIsual_active)
|
||||
{
|
||||
curwin->w_curswant = linetabsize(line) + one_more;
|
||||
curwin->w_curswant = linetabsize_str(line) + one_more;
|
||||
if (curwin->w_curswant > 0)
|
||||
--curwin->w_curswant;
|
||||
}
|
||||
@@ -166,7 +166,7 @@ coladvance2(
|
||||
&& wcol >= (colnr_T)width
|
||||
&& width > 0)
|
||||
{
|
||||
csize = linetabsize(line);
|
||||
csize = linetabsize_str(line);
|
||||
if (csize > 0)
|
||||
csize--;
|
||||
|
||||
|
Reference in New Issue
Block a user