Fixes: #12725
As mentioned in #12725 (comment), the problem was with that || lcs_eol_one == -1
break
condition.
It looks like that condition was compensating for an incorrect outer wlv.p_extra != at_end_str
that intended to check if the EOL character hadn't been added to the screen line, but that would evaluate to true because when wlv.p_extra
is updated to the end of the string without being set to at_end_str
, such as when the virtual text has been truncated by text_prop_position
and the truncated text as finished being added to the screen line. The inner lcs_eol_one == -1
was compensating for this for the truncation case, but then caused problems for the cause where truncation of the virtual text shouldn't happen. So I moved that problematic inner condition and used it to replace the incorrect outer condition.
https://github.com/vim/vim/pull/14079
(1 file)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
@zeertzjq commented on this pull request.
In src/drawline.c:
> - && wlv.p_extra != at_end_str) + && lcs_eol_one != -1)
This makes the at_end_str
variable no longer necessary, as it is now only used once in wlv.p_extra = at_end_str
, which can now be changed to just wlv.p_extra = ""
.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
> // When not wrapping and finished diff lines, or when displayed // '$' and highlighting until last column, break here.⬇️ Suggested change
- // When not wrapping and finished diff lines, or when displayed - // '$' and highlighting until last column, break here. + // When not wrapping and finished diff lines, break here.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@dylanahsmith pushed 1 commit.
—
View it on GitHub.
You are receiving this because you are subscribed to this thread.
@dylanahsmith pushed 1 commit.
—
View it on GitHub.
You are receiving this because you are subscribed to this thread.
@dylanahsmith pushed 1 commit.
—
View it on GitHub.
You are receiving this because you are subscribed to this thread.
thanks, makes sense.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.