summaryrefslogtreecommitdiffstats
path: root/src/edit.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/edit.c
parent0abd6cf62d65180dc2c40d67cd95f13b0691f7ea (diff)
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/edit.c')
-rw-r--r--src/edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/edit.c b/src/edit.c
index 1aaac62772..555b83bc31 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -237,7 +237,7 @@ edit(
if (startln)
Insstart.col = 0;
}
- Insstart_textlen = (colnr_T)linetabsize(ml_get_curline());
+ Insstart_textlen = (colnr_T)linetabsize_str(ml_get_curline());
Insstart_blank_vcol = MAXCOL;
if (!did_ai)
ai_col = 0;
@@ -2372,7 +2372,7 @@ stop_arrow(void)
// Don't update the original insert position when moved to the
// right, except when nothing was inserted yet.
update_Insstart_orig = FALSE;
- Insstart_textlen = (colnr_T)linetabsize(ml_get_curline());
+ Insstart_textlen = (colnr_T)linetabsize_str(ml_get_curline());
if (u_save_cursor() == OK)
{