+2021-02-07 Hannes Domani <ssbssa@yahoo.de>
+
+ * tui/tui-regs.c (tui_data_window::display_registers_from):
+ Mark invisible register sub windows.
+ (tui_data_window::check_register_values): Ignore invisible
+ register sub windows.
+
2021-02-07 Hannes Domani <ssbssa@yahoo.de>
* tui/tui-regs.c (tui_data_item_window::rerender): Don't call
max_len = len;
}
m_item_width = max_len + 1;
- int i = start_element_no;
+
+ int i;
+ /* Mark register windows above the visible area. */
+ for (i = 0; i < start_element_no; i++)
+ m_regs_content[i].y = 0;
m_regs_column_count = (width - 2) / m_item_width;
if (m_regs_column_count == 0)
cur_y++; /* Next row. */
}
+ /* Mark register windows below the visible area. */
+ for (; i < m_regs_content.size (); i++)
+ m_regs_content[i].y = 0;
+
refresh_window ();
}
data_item_win.regno,
&data_item_win.highlight);
- if (data_item_win.highlight || was_hilighted)
+ /* Register windows whose y == 0 are outside the visible area. */
+ if ((data_item_win.highlight || was_hilighted)
+ && data_item_win.y > 0)
data_item_win.rerender (handle.get (), m_item_width);
}
}