comparison src/structs.h @ 29730:0eeab24d3faf v9.0.0205

patch 9.0.0205: cursor in wrong position when inserting after virtual text Commit: https://github.com/vim/vim/commit/28c9f895716cfa8f1220bc41b72a534c0e10cabe Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 14 13:28:55 2022 +0100 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 #10914)
author Bram Moolenaar <Bram@vim.org>
date Sun, 14 Aug 2022 14:30:04 +0200
parents a3a966b8b7a7
children 89e1d67814a9
comparison
equal deleted inserted replaced
29729:762a6032573f 29730:0eeab24d3faf
813 #define TP_FLAG_ALIGN_RIGHT 0x10 // virtual text is right-aligned 813 #define TP_FLAG_ALIGN_RIGHT 0x10 // virtual text is right-aligned
814 #define TP_FLAG_ALIGN_BELOW 0x20 // virtual text on next screen line 814 #define TP_FLAG_ALIGN_BELOW 0x20 // virtual text on next screen line
815 815
816 #define TP_FLAG_WRAP 0x40 // virtual text wraps - when missing 816 #define TP_FLAG_WRAP 0x40 // virtual text wraps - when missing
817 // text is truncated 817 // text is truncated
818 #define TP_FLAG_START_INCL 0x80 // "start_incl" copied from proptype
819
818 #define PROP_TEXT_MIN_CELLS 4 // minimun number of cells to use for 820 #define PROP_TEXT_MIN_CELLS 4 // minimun number of cells to use for
819 // the text, even when truncating 821 // the text, even when truncating
820 822
821 /* 823 /*
822 * Structure defining a property type. 824 * Structure defining a property type.
4585 textprop_T *cts_text_props; // text props (allocated) 4587 textprop_T *cts_text_props; // text props (allocated)
4586 char cts_has_prop_with_text; // TRUE if if a property inserts text 4588 char cts_has_prop_with_text; // TRUE if if a property inserts text
4587 int cts_cur_text_width; // width of current inserted text 4589 int cts_cur_text_width; // width of current inserted text
4588 int cts_with_trailing; // include size of trailing props with 4590 int cts_with_trailing; // include size of trailing props with
4589 // last character 4591 // last character
4592 int cts_start_incl; // prop has true "start_incl" arg
4590 #endif 4593 #endif
4591 int cts_vcol; // virtual column at current position 4594 int cts_vcol; // virtual column at current position
4592 } chartabsize_T; 4595 } chartabsize_T;