diff options
author | James McCoy <jamessan@jamessan.com> | 2021-12-08 21:17:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-08 21:17:18 -0500 |
commit | 2cd815c0af3eded9771df94532b4fb3817f2d3c6 (patch) | |
tree | e127180aa4545dae618faab410fa7ea7ea30c489 /src/nvim/cursor.c | |
parent | be84529190e25294d0783394f63801e56a39e632 (diff) | |
parent | 2784a5d3d28004f95dfd4e31a825722440437fe1 (diff) | |
download | rneovim-2cd815c0af3eded9771df94532b4fb3817f2d3c6.tar.gz rneovim-2cd815c0af3eded9771df94532b4fb3817f2d3c6.tar.bz2 rneovim-2cd815c0af3eded9771df94532b4fb3817f2d3c6.zip |
Merge pull request #16418 from zeertzjq/terminal-coladvance
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); |