+2019-03-16 Eli Zaretskii <eliz@gnu.org>
+
+ * tui/tui-winsource.c (tui_show_source_line): Revert "Use
+ wclrtoeol in tui_show_source_line". This reverts changes made in
+ commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
+
2019-03-15 Tom Tromey <tom@tromey.com>
* symtab.h (struct minimal_symbol): Derive from
tui_show_source_line (struct tui_win_info *win_info, int lineno)
{
struct tui_win_element *line;
+ int x;
line = win_info->generic.content[lineno - 1];
if (line->which_element.source.is_exec_point)
wattroff (win_info->generic.handle, A_STANDOUT);
/* Clear to end of line but stop before the border. */
- wclrtoeol (win_info->generic.handle);
+ x = getcurx (win_info->generic.handle);
+ while (x + 1 < win_info->generic.width)
+ {
+ waddch (win_info->generic.handle, ' ');
+ x = getcurx (win_info->generic.handle);
+ }
}
void