summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-14 13:28:55 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-14 13:28:55 +0100
commit28c9f895716cfa8f1220bc41b72a534c0e10cabe (patch)
tree274ccf5d35445ce4b46e733b209fb73edcf4ad0c /src/structs.h
parent63acae13f57c5ad4c8ec3146d0c458550b9e984e (diff)
downloadvim-git-28c9f895716cfa8f1220bc41b72a534c0e10cabe.tar.gz
patch 9.0.0205: cursor in wrong position when inserting after virtual textv9.0.0205
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 #10914)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index fcc9c79c3..fb56e012a 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -815,6 +815,8 @@ typedef struct textprop_S
#define TP_FLAG_WRAP 0x40 // virtual text wraps - when missing
// text is truncated
+#define TP_FLAG_START_INCL 0x80 // "start_incl" copied from proptype
+
#define PROP_TEXT_MIN_CELLS 4 // minimun number of cells to use for
// the text, even when truncating
@@ -4587,6 +4589,7 @@ typedef struct {
int cts_cur_text_width; // width of current inserted text
int cts_with_trailing; // include size of trailing props with
// last character
+ int cts_start_incl; // prop has true "start_incl" arg
#endif
int cts_vcol; // virtual column at current position
} chartabsize_T;