Skip to content

Commit bbbadf6

Browse files
committed
git-gui: Don't display CR within console windows
Git progress bars from tools like git-push and git-fetch use CR to skip back to the start of the current line and redraw it with an updated progress. We were doing this in our Tk widget but had failed to skip the CR, which Tk doesn't draw well. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
1 parent bea6878 commit bbbadf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/console.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ method _read {fd after} {
122122
} else {
123123
$w.m.t delete $console_cr end
124124
$w.m.t insert end "\n"
125-
$w.m.t insert end [string range $buf $c $cr]
125+
$w.m.t insert end [string range $buf $c [expr {$cr - 1}]]
126126
set c $cr
127127
incr c
128128
}

0 commit comments

Comments
 (0)