OSDN Git Service

* console.itb (Console::invoke): Trim trailing newlines from
authortromey <tromey>
Fri, 8 Dec 2000 20:17:03 +0000 (20:17 +0000)
committertromey <tromey>
Fri, 8 Dec 2000 20:17:03 +0000 (20:17 +0000)
text.

gdb/gdbtk/library/ChangeLog
gdb/gdbtk/library/console.itb

index 85ba088..0d89662 100644 (file)
@@ -1,3 +1,8 @@
+2000-12-08  Tom Tromey  <tromey@redhat.com>
+
+       * console.itb (Console::invoke): Trim trailing newlines from
+       text.
+
 2000-12-07  Tom Tromey  <tromey@redhat.com>
 
        * managedwin.itb (ManagedWin::reveal): Don't set focus.
index fa88f8d..5a9e5fc 100644 (file)
@@ -397,6 +397,7 @@ body Console::invoke {} {
 
   incr _invoking
 
+  set text [string trimright $text \n]
   if {$text == ""} {
     set text [lindex $_history 0]
     $_twin insert {insert lineend} $text