summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.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/ex_cmds.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/ex_cmds.c')
-rw-r--r--src/ex_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 3c13b8de29..7f41c7915a 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -256,7 +256,7 @@ linelen(int *has_tab)
;
save = *last;
*last = NUL;
- len = linetabsize(line); // get line length
+ len = linetabsize_str(line); // get line length on screen
if (has_tab != NULL) // check for embedded TAB
*has_tab = (vim_strchr(first, TAB) != NULL);
*last = save;