OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89fb5e3
)
* console.itb (Console::invoke): Trim trailing newlines from
author
tromey
<tromey>
Fri, 8 Dec 2000 20:17:03 +0000
(20:17 +0000)
committer
tromey
<tromey>
Fri, 8 Dec 2000 20:17:03 +0000
(20:17 +0000)
text.
gdb/gdbtk/library/ChangeLog
patch
|
blob
|
history
gdb/gdbtk/library/console.itb
patch
|
blob
|
history
diff --git
a/gdb/gdbtk/library/ChangeLog
b/gdb/gdbtk/library/ChangeLog
index
85ba088
..
0d89662
100644
(file)
--- a/
gdb/gdbtk/library/ChangeLog
+++ b/
gdb/gdbtk/library/ChangeLog
@@
-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.
diff --git
a/gdb/gdbtk/library/console.itb
b/gdb/gdbtk/library/console.itb
index
fa88f8d
..
5a9e5fc
100644
(file)
--- a/
gdb/gdbtk/library/console.itb
+++ b/
gdb/gdbtk/library/console.itb
@@
-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