Fossil SCM

Minimum line-number width in --tk output is 3, to accommodate ellipses.

drh 2021-09-05 20:59 trunk
Commit 719498bd5f7c931c6d4ac592339b94d4d4bcd2cd43959a7abaf1c64b2acb4610
1 file changed +1 -1
+1 -1
--- src/diff.tcl
+++ src/diff.tcl
@@ -72,11 +72,11 @@
7272
set N [llength $difftxt]
7373
set ii 0
7474
set nDiffs 0
7575
set n1 0
7676
set n2 0
77
- array set widths {txt 0 ln 0 mkr 1}
77
+ array set widths {txt 3 ln 3 mkr 1}
7878
while {[set line [getLine $difftxt $N ii]] != -1} {
7979
switch -- [lindex $line 0] {
8080
FILE {
8181
incr nDiffs
8282
foreach wx [list [string length $n1] [string length $n2]] {
8383
--- src/diff.tcl
+++ src/diff.tcl
@@ -72,11 +72,11 @@
72 set N [llength $difftxt]
73 set ii 0
74 set nDiffs 0
75 set n1 0
76 set n2 0
77 array set widths {txt 0 ln 0 mkr 1}
78 while {[set line [getLine $difftxt $N ii]] != -1} {
79 switch -- [lindex $line 0] {
80 FILE {
81 incr nDiffs
82 foreach wx [list [string length $n1] [string length $n2]] {
83
--- src/diff.tcl
+++ src/diff.tcl
@@ -72,11 +72,11 @@
72 set N [llength $difftxt]
73 set ii 0
74 set nDiffs 0
75 set n1 0
76 set n2 0
77 array set widths {txt 3 ln 3 mkr 1}
78 while {[set line [getLine $difftxt $N ii]] != -1} {
79 switch -- [lindex $line 0] {
80 FILE {
81 incr nDiffs
82 foreach wx [list [string length $n1] [string length $n2]] {
83

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button