summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-10-14 20:09:04 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-14 20:09:04 +0100
commitc9121f798f49fa71e814912cb186d89c164090c3 (patch)
tree7bf018b61ef5e6aff94c935e1638055a662ee2d3 /src/misc2.c
parent0abd6cf62d65180dc2c40d67cd95f13b0691f7ea (diff)
downloadvim-git-c9121f798f49fa71e814912cb186d89c164090c3.tar.gz
patch 9.0.0751: 'scrolloff' does not work well with 'smoothscroll'v9.0.0751
Problem: 'scrolloff' does not work well with 'smoothscroll'. Solution: Make positioning the cursor a bit better. Rename functions.
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc2.c b/src/misc2.c
index 5d36cc152..84c5f4319 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -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--;