git-gui: Automatically spell check commit messages as the user types
[gitweb.git] / lib / console.tcl
index 2075374683a49dd8a955e52c76d951ec3013536b..5597188d803a1c8217011412a39c14fbbeaf0b3a 100644 (file)
@@ -120,7 +120,7 @@ method _read {fd after} {
                        } else {
                                $w_t delete $console_cr end
                                $w_t insert end "\n"
-                               $w_t insert end [string range $buf $c $cr]
+                               $w_t insert end [string range $buf $c [expr {$cr - 1}]]
                                set c $cr
                                incr c
                        }