aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/change.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-08-10 23:18:12 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2021-08-10 23:18:12 +0200
commitac56a27a108012b80f5ed61be7370f10bbeb9d41 (patch)
tree7783e8b69f30cff08abdfb4d5e235147c3ba7778 /src/nvim/change.c
parentb506643dfc5800255717e2c7ccb7934214126b31 (diff)
downloadrneovim-ac56a27a108012b80f5ed61be7370f10bbeb9d41.tar.gz
rneovim-ac56a27a108012b80f5ed61be7370f10bbeb9d41.tar.bz2
rneovim-ac56a27a108012b80f5ed61be7370f10bbeb9d41.zip
refactor(plines): remove implicit curwin chartabsize() function
Diffstat (limited to 'src/nvim/change.c')
-rw-r--r--src/nvim/change.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c
index 49e403425a..6a20b208df 100644
--- a/src/nvim/change.c
+++ b/src/nvim/change.c
@@ -593,9 +593,9 @@ void ins_char_bytes(char_u *buf, size_t charlen)
// cells. May result in adding spaces to fill a gap.
colnr_T vcol;
getvcol(curwin, &curwin->w_cursor, NULL, &vcol, NULL);
- colnr_T new_vcol = vcol + chartabsize(buf, vcol);
+ colnr_T new_vcol = vcol + win_chartabsize(curwin, buf, vcol);
while (oldp[col + oldlen] != NUL && vcol < new_vcol) {
- vcol += chartabsize(oldp + col + oldlen, vcol);
+ vcol += win_chartabsize(curwin, oldp + col + oldlen, vcol);
// Don't need to remove a TAB that takes us to the right
// position.
if (vcol > new_vcol && oldp[col + oldlen] == TAB) {