mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
vim-patch:9.0.0205: cursor in wrong position when inserting after virtual text
Problem: Cursor in wrong position when inserting after virtual text. (Ben
Jackson)
Solution: Put the cursor after the virtual text, where the text will be
inserted. (closes vim/vim#10914)
28c9f89571
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -14,6 +14,7 @@ typedef struct {
|
||||
int cts_row;
|
||||
|
||||
bool cts_has_virt_text; // true if if a property inserts text
|
||||
bool cts_has_right_gravity;
|
||||
int cts_cur_text_width; // width of current inserted text
|
||||
MarkTreeIter cts_iter[1];
|
||||
// TODO(bfredl): iterator in to the marktree for scanning virt text
|
||||
|
Reference in New Issue
Block a user