refactor(plines): remove implicit curwin chartabsize() function

This commit is contained in:
Björn Linse
2021-08-10 23:18:12 +02:00
parent b506643dfc
commit ac56a27a10
6 changed files with 13 additions and 18 deletions

View File

@@ -1055,7 +1055,7 @@ static void f_col(typval_T *argvars, typval_T *rettv, FunPtr fptr)
if (virtual_active() && fp == &curwin->w_cursor) {
char_u *p = get_cursor_pos_ptr();
if (curwin->w_cursor.coladd >= (colnr_T)chartabsize(p,
if (curwin->w_cursor.coladd >= (colnr_T)win_chartabsize(curwin, p,
curwin->w_virtcol - curwin->w_cursor.coladd)) {
int l;