Fossil SCM

Fix the SKIP display for --tk diffs.

drh 2021-09-04 15:00 diff-color-enhancements
Commit 581d3f8d88359b00523964c411b34977aa6b249ac65ac647cd9be4c04a16e12e
1 file changed +10 -3
+10 -3
--- src/diff.tcl
+++ src/diff.tcl
@@ -19,11 +19,11 @@
1919
MKR_COL_BG #444444
2020
MKR_COL_FG #dddddd
2121
CHNG_BG #d0d0ff
2222
ADD_BG #c0ffc0
2323
RM_BG #ffc0c0
24
- HR_FG #888888
24
+ HR_FG #444444
2525
HR_PAD_TOP 4
2626
HR_PAD_BTM 8
2727
FN_BG #444444
2828
FN_FG #ffffff
2929
FN_PAD 5
@@ -93,10 +93,15 @@
9393
}
9494
SKIP {
9595
set n [lindex $line 1]
9696
incr n1 $n
9797
incr n2 $n
98
+ .lnA insert end ...\n hrln
99
+ .txtA insert end [string repeat . 30]\n hrtxt
100
+ .mkr insert end \n hrln
101
+ .lnB insert end ...\n hrln
102
+ .txtB insert end [string repeat . 30]\n hrtxt
98103
}
99104
COM {
100105
set x [lindex $line 1]
101106
incr n1
102107
incr n2
@@ -361,12 +366,14 @@
361366
foreach c [cols] {
362367
set keyPrefix [string toupper [colType $c]]_COL_
363368
if {[tk windowingsystem] eq "win32"} {$c config -font {courier 9}}
364369
$c config -bg $CFG(${keyPrefix}BG) -fg $CFG(${keyPrefix}FG) -borderwidth 0 \
365370
-padx $CFG(PADX) -yscroll sync-y
366
- $c tag config hr -spacing1 $CFG(HR_PAD_TOP) -spacing3 $CFG(HR_PAD_BTM) \
367
- -foreground $CFG(HR_FG)
371
+ $c tag config hrln -spacing1 $CFG(HR_PAD_TOP) -spacing3 $CFG(HR_PAD_BTM) \
372
+ -foreground $CFG(HR_FG) -justify right
373
+ $c tag config hrtxt -spacing1 $CFG(HR_PAD_TOP) -spacing3 $CFG(HR_PAD_BTM) \
374
+ -foreground $CFG(HR_FG) -justify center
368375
$c tag config fn -spacing1 $CFG(FN_PAD) -spacing3 $CFG(FN_PAD)
369376
bindtags $c ". $c Text all"
370377
bind $c <1> {focus %W}
371378
}
372379
373380
--- src/diff.tcl
+++ src/diff.tcl
@@ -19,11 +19,11 @@
19 MKR_COL_BG #444444
20 MKR_COL_FG #dddddd
21 CHNG_BG #d0d0ff
22 ADD_BG #c0ffc0
23 RM_BG #ffc0c0
24 HR_FG #888888
25 HR_PAD_TOP 4
26 HR_PAD_BTM 8
27 FN_BG #444444
28 FN_FG #ffffff
29 FN_PAD 5
@@ -93,10 +93,15 @@
93 }
94 SKIP {
95 set n [lindex $line 1]
96 incr n1 $n
97 incr n2 $n
 
 
 
 
 
98 }
99 COM {
100 set x [lindex $line 1]
101 incr n1
102 incr n2
@@ -361,12 +366,14 @@
361 foreach c [cols] {
362 set keyPrefix [string toupper [colType $c]]_COL_
363 if {[tk windowingsystem] eq "win32"} {$c config -font {courier 9}}
364 $c config -bg $CFG(${keyPrefix}BG) -fg $CFG(${keyPrefix}FG) -borderwidth 0 \
365 -padx $CFG(PADX) -yscroll sync-y
366 $c tag config hr -spacing1 $CFG(HR_PAD_TOP) -spacing3 $CFG(HR_PAD_BTM) \
367 -foreground $CFG(HR_FG)
 
 
368 $c tag config fn -spacing1 $CFG(FN_PAD) -spacing3 $CFG(FN_PAD)
369 bindtags $c ". $c Text all"
370 bind $c <1> {focus %W}
371 }
372
373
--- src/diff.tcl
+++ src/diff.tcl
@@ -19,11 +19,11 @@
19 MKR_COL_BG #444444
20 MKR_COL_FG #dddddd
21 CHNG_BG #d0d0ff
22 ADD_BG #c0ffc0
23 RM_BG #ffc0c0
24 HR_FG #444444
25 HR_PAD_TOP 4
26 HR_PAD_BTM 8
27 FN_BG #444444
28 FN_FG #ffffff
29 FN_PAD 5
@@ -93,10 +93,15 @@
93 }
94 SKIP {
95 set n [lindex $line 1]
96 incr n1 $n
97 incr n2 $n
98 .lnA insert end ...\n hrln
99 .txtA insert end [string repeat . 30]\n hrtxt
100 .mkr insert end \n hrln
101 .lnB insert end ...\n hrln
102 .txtB insert end [string repeat . 30]\n hrtxt
103 }
104 COM {
105 set x [lindex $line 1]
106 incr n1
107 incr n2
@@ -361,12 +366,14 @@
366 foreach c [cols] {
367 set keyPrefix [string toupper [colType $c]]_COL_
368 if {[tk windowingsystem] eq "win32"} {$c config -font {courier 9}}
369 $c config -bg $CFG(${keyPrefix}BG) -fg $CFG(${keyPrefix}FG) -borderwidth 0 \
370 -padx $CFG(PADX) -yscroll sync-y
371 $c tag config hrln -spacing1 $CFG(HR_PAD_TOP) -spacing3 $CFG(HR_PAD_BTM) \
372 -foreground $CFG(HR_FG) -justify right
373 $c tag config hrtxt -spacing1 $CFG(HR_PAD_TOP) -spacing3 $CFG(HR_PAD_BTM) \
374 -foreground $CFG(HR_FG) -justify center
375 $c tag config fn -spacing1 $CFG(FN_PAD) -spacing3 $CFG(FN_PAD)
376 bindtags $c ". $c Text all"
377 bind $c <1> {focus %W}
378 }
379
380

Keyboard Shortcuts

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