* tui-out.c (tui_out_new): Clear start_of_line.
authorStephane Carrez <stcarrez@nerim.fr>
Sun, 1 Sep 2002 16:12:52 +0000 (16:12 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Sun, 1 Sep 2002 16:12:52 +0000 (16:12 +0000)
* tuiSource.c (tuiVerticalSourceScroll): Use print_source_lines
to update the current source line.

gdb/tui/ChangeLog
gdb/tui/tui-out.c
gdb/tui/tuiSource.c

index 4a190edc5181e8b565a0b7ab0214a1a4e8ed9e2f..20315879802d4262ea43137a2c8abb768a40be2f 100644 (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.
index a8cc58ba5caa5a4187a025a2b7f37d7b33c9ff2d..71ce5e00aa487b386823d680fd771b6684df1a8c 100644 (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);
 }
 
index 3c1b81e99938c5d20c5b4343e6314fdfae48c1a9..0d59bf06b058993abe2b274ba6c2739e355102c7 100644 (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);
     }
 }