diff options
author | zeertzjq <zeertzjq@outlook.com> | 2021-12-08 08:11:27 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2021-12-08 08:11:27 +0800 |
commit | 2784a5d3d28004f95dfd4e31a825722440437fe1 (patch) | |
tree | 653ab96b55a1f177ed3f439fe09c28d62b8050f9 /src/nvim/cursor.c | |
parent | be768be6b7ee896277971593e9287a86bc41efb2 (diff) | |
download | rneovim-2784a5d3d28004f95dfd4e31a825722440437fe1.tar.gz rneovim-2784a5d3d28004f95dfd4e31a825722440437fe1.tar.bz2 rneovim-2784a5d3d28004f95dfd4e31a825722440437fe1.zip |
fix(terminal): use coladvance() to calculate buffer cursor position
Diffstat (limited to 'src/nvim/cursor.c')
-rw-r--r-- | src/nvim/cursor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/cursor.c b/src/nvim/cursor.c index e334fd166e..4e1d7f9d78 100644 --- a/src/nvim/cursor.c +++ b/src/nvim/cursor.c @@ -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); |