diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-24 07:27:18 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-08-28 05:51:01 +0800 |
commit | 128091a256d64db2f983d70a888b379d7e63f131 (patch) | |
tree | 02d71afdc932cb051d648f9353e480934917aa7a /src/nvim/move.c | |
parent | abb8c2c453d1e084f8ab3e9bbaa8b27515c81a9f (diff) | |
download | rneovim-128091a256d64db2f983d70a888b379d7e63f131.tar.gz rneovim-128091a256d64db2f983d70a888b379d7e63f131.tar.bz2 rneovim-128091a256d64db2f983d70a888b379d7e63f131.zip |
fix(ui): wrong cursor position with left gravity inline virt text at eol
Diffstat (limited to 'src/nvim/move.c')
-rw-r--r-- | src/nvim/move.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c index 0077dc3102..3978539df6 100644 --- a/src/nvim/move.c +++ b/src/nvim/move.c @@ -862,15 +862,6 @@ void curs_columns(win_T *wp, int may_scroll) n = (wp->w_wcol - wp->w_width_inner) / width2 + 1; wp->w_wcol -= n * width2; wp->w_wrow += n; - - // When cursor wraps to first char of next line in Insert - // mode, the 'showbreak' string isn't shown, backup to first - // column - char *const sbr = get_showbreak_value(wp); - if (*sbr && *get_cursor_pos_ptr() == NUL - && wp->w_wcol == (wp->w_width_inner - width2) + vim_strsize(sbr)) { - wp->w_wcol = 0; - } } } else if (may_scroll && !wp->w_cline_folded) { |