aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-23 13:44:53 +0800
committerGitHub <noreply@github.com>2023-08-23 13:44:53 +0800
commit99265d099c2c366eea936438734a323d1fb9b341 (patch)
tree32cc38ad61372c1977f7e295c4e6a6a86acad510 /src/nvim/edit.c
parent3e80b39a8ef9d33090800642d25fadbd282af337 (diff)
parent908f247c224db88ffd25e207314d41031519b128 (diff)
downloadrneovim-99265d099c2c366eea936438734a323d1fb9b341.tar.gz
rneovim-99265d099c2c366eea936438734a323d1fb9b341.tar.bz2
rneovim-99265d099c2c366eea936438734a323d1fb9b341.zip
Merge pull request #24844 from zeertzjq/vim-9.0.1783
vim-patch:9.0.1783: Display issues with virt text smoothscroll and showbreak
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 915399ec78..869b226856 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -232,7 +232,8 @@ static void insert_enter(InsertState *s)
may_trigger_modechanged();
stop_insert_mode = false;
- // need to position cursor again when on a TAB
+ // need to position cursor again when on a TAB and
+ // when on a char with inline virtual text
if (gchar_cursor() == TAB || curbuf->b_virt_text_inline > 0) {
curwin->w_valid &= ~(VALID_WROW|VALID_WCOL|VALID_VIRTCOL);
}
@@ -3471,7 +3472,8 @@ static bool ins_esc(long *count, int cmdchar, bool nomove)
State = MODE_NORMAL;
may_trigger_modechanged();
- // need to position cursor again when on a TAB
+ // need to position cursor again when on a TAB and
+ // when on a char with inline virtual text
if (gchar_cursor() == TAB || curbuf->b_virt_text_inline > 0) {
curwin->w_valid &= ~(VALID_WROW|VALID_WCOL|VALID_VIRTCOL);
}