* tui-out.c (tui_out_new): Clear start_of_line.

* tuiSource.c (tuiVerticalSourceScroll): Use print_source_lines
	to update the current source line.
This commit is contained in:
Stephane Carrez 2002-09-01 16:12:52 +00:00
parent cda8ab4048
commit 27229e9991
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
* tui-out.c (tui_out_new): Clear start_of_line.
* tuiSource.c (tuiVerticalSourceScroll): Use print_source_lines
to update the current source line.
2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
* tui-hooks.c (tui_detach_hook): New hook to know when a process dies.

View File

@ -398,7 +398,7 @@ tui_out_new (struct ui_file *stream)
data->stream = stream;
data->suppress_output = 0;
data->line = -1;
data->start_of_line = 1;
data->start_of_line = 0;
return ui_out_new (&tui_ui_out_impl, data, flags);
}

View File

@ -359,7 +359,7 @@ tuiVerticalSourceScroll (TuiScrollDirection scrollDirection,
if (l.lineNo <= 0)
l.lineNo = 1;
}
if (identify_source_line (s, l.lineNo, 0, -1) == 1)
tuiUpdateSourceWindowAsIs (srcWin, s, l, FALSE);
print_source_lines (s, l.lineNo, l.lineNo + 1, 0);
}
}