summaryrefslogtreecommitdiffstats
path: root/src/structs.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-22 22:07:34 +0200
committerChristian Brabandt <cb@256bit.org>2023-08-22 22:07:34 +0200
commitb557f4898208105b674df605403cac1b1292707b (patch)
tree1f488959630dfabef4d8fe87928aeb462b455d32 /src/structs.h
parent171c5b9b0332493faa6caadd8c0d5cf52392d913 (diff)
patch 9.0.1783: Display issues with virt text smoothscroll and showbreakv9.0.1783
Problem: Wrong display with wrapping virtual text or unprintable chars, 'showbreak' and 'smoothscroll'. Solution: Don't skip cells taken by 'showbreak' in screen lines before "w_skipcol". Combined "n_skip" and "skip_cells". closes: #12597 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/structs.h b/src/structs.h
index 06b373a314..ba712c1d22 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -4816,21 +4816,22 @@ typedef struct {
// Argument for lbr_chartabsize().
typedef struct {
win_T *cts_win;
- char_u *cts_line; // start of the line
- char_u *cts_ptr; // current position in line
+ char_u *cts_line; // start of the line
+ char_u *cts_ptr; // current position in line
#ifdef FEAT_PROP_POPUP
int cts_text_prop_count; // number of text props; when zero
// cts_text_props is not used
textprop_T *cts_text_props; // text props (allocated)
- char cts_has_prop_with_text; // TRUE if a property inserts text
- int cts_cur_text_width; // width of current inserted text
+ char cts_has_prop_with_text; // TRUE if a property inserts text
+ int cts_cur_text_width; // width of current inserted text
int cts_prop_lines; // nr of properties above or below
int cts_first_char; // width text props above the line
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
+ int cts_vcol; // virtual column at current position
+ int cts_max_head_vcol; // see win_lbr_chartabsize()
} chartabsize_T;
/*