mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +00:00
refactor(plines): use a struct for chartabsize state
This is a refactor extracted from vim-patch 9.0.0067: cannot show virtual text The logic for inline virtual text is going to be different in nvim than text property based text in vim, but this refactor is still useful, as calculation of displayed linesize is going to be stateful in a similar way.
This commit is contained in:
@@ -841,7 +841,7 @@ void ex_retab(exarg_T *eap)
|
||||
if (ptr[col] == NUL) {
|
||||
break;
|
||||
}
|
||||
vcol += win_chartabsize(curwin, (char_u *)ptr + col, (colnr_T)vcol);
|
||||
vcol += win_chartabsize(curwin, ptr + col, (colnr_T)vcol);
|
||||
if (vcol >= MAXCOL) {
|
||||
emsg(_(e_resulting_text_too_long));
|
||||
break;
|
||||
|
Reference in New Issue
Block a user