Fix highlight height in modern mode

This commit is contained in:
FIGBERT 2023-03-25 23:01:56 -07:00
parent d4e820579c
commit abfcdae4ef
No known key found for this signature in database
GPG key ID: 67F1598D607A844B

View file

@ -340,6 +340,9 @@ func (msg *UIMessage) Draw(screen mauview.Screen, modernHeader bool) {
msg.DrawReactions(proxyScreen, modernHeader)
if msg.IsSelected {
w, h := screen.Size()
if modernHeader {
h--
}
for x := 0; x < w; x++ {
for y := 0; y < h; y++ {
mainc, combc, style, _ := screen.GetContent(x, y)