Currently image previews are printed one line too high if the message had a date inserted into it indicating a change of date between the current and preceding message. With this PR we conditionally check if a date was inserted and adjust the y offset used to place the rendered the image.
Tested in: XTerm(374), wezterm 20240203-110809-5046fc22, and konsole 24.02.1.
Currently image previews are printed one line too high if the message had a date inserted into it indicating a change of date between the current and preceding message. With this PR we conditionally check if a date was inserted and adjust the y offset used to place the rendered the image.
Tested in:
XTerm(374)
,wezterm 20240203-110809-5046fc22
, andkonsole 24.02.1
.Before change:
After change: