comparison src/structs.h @ 29560:14b139cbec49 v9.0.0121

patch 9.0.0121: cannot put virtual text after or below a line Commit: https://github.com/vim/vim/commit/b7963df98f9dbbb824713acad2f47c9989fcf8f3 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 31 17:12:43 2022 +0100 patch 9.0.0121: cannot put virtual text after or below a line Problem: Cannot put virtual text after or below a line. Solution: Add "text_align" and "text_wrap" arguments.
author Bram Moolenaar <Bram@vim.org>
date Sun, 31 Jul 2022 18:15:03 +0200
parents 1ae3e2d691a0
children f2d7f20d83c3
comparison
equal deleted inserted replaced
29559:69ceb540c619 29560:14b139cbec49
806 int tp_flags; // TP_FLAG_ values 806 int tp_flags; // TP_FLAG_ values
807 } textprop_T; 807 } textprop_T;
808 808
809 #define TP_FLAG_CONT_NEXT 0x1 // property continues in next line 809 #define TP_FLAG_CONT_NEXT 0x1 // property continues in next line
810 #define TP_FLAG_CONT_PREV 0x2 // property was continued from prev line 810 #define TP_FLAG_CONT_PREV 0x2 // property was continued from prev line
811 #define TP_VIRTUAL 0x4 // virtual text, uses tp_id 811
812 // without these text is placed after the end of the line
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
815
816 #define TP_FLAG_WRAP 0x40 // virtual text wraps - when missing
817 // text is truncated
812 818
813 /* 819 /*
814 * Structure defining a property type. 820 * Structure defining a property type.
815 */ 821 */
816 typedef struct proptype_S 822 typedef struct proptype_S
4573 int cts_text_prop_count; // number of text props; when zero 4579 int cts_text_prop_count; // number of text props; when zero
4574 // cts_text_props is not used 4580 // cts_text_props is not used
4575 textprop_T *cts_text_props; // text props (allocated) 4581 textprop_T *cts_text_props; // text props (allocated)
4576 char cts_has_prop_with_text; // TRUE if if a property inserts text 4582 char cts_has_prop_with_text; // TRUE if if a property inserts text
4577 int cts_cur_text_width; // width of current inserted text 4583 int cts_cur_text_width; // width of current inserted text
4584 int cts_with_trailing; // include size of trailing props with
4585 // last character
4578 #endif 4586 #endif
4579 int cts_vcol; // virtual column at current position 4587 int cts_vcol; // virtual column at current position
4580 } chartabsize_T; 4588 } chartabsize_T;