fix(terminal): use coladvance() to calculate buffer cursor position

This commit is contained in:
zeertzjq
2021-12-08 08:11:27 +08:00
parent be768be6b7
commit 2784a5d3d2
3 changed files with 707 additions and 3 deletions

View File

@@ -108,6 +108,7 @@ static int coladvance2(pos_T *pos, bool addspaces, bool finetune, colnr_T wcol_a
int head = 0;
one_more = (State & INSERT)
|| (State & TERM_FOCUS)
|| restart_edit != NUL
|| (VIsual_active && *p_sel != 'o')
|| ((ve_flags & VE_ONEMORE) && wcol < MAXCOL);