Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Refactor insertLine a bit. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
d6f65d2a5055e6c2ece9cd5ef774e3e0 |
User & Date: | peter 2020-12-07 11:54:11.794 |
Context
2020-12-10
| ||
12:23 | Refactoring and cleanup of Plugin code. Prepare for runtime plugin. check-in: 3c9895c599 user: peter tags: trunk | |
2020-12-07
| ||
11:54 | Refactor insertLine a bit. check-in: d6f65d2a50 user: peter tags: trunk | |
2020-10-30
| ||
13:46 | Allow print to cancel. check-in: 264df1032d user: peter tags: trunk | |
Changes
Changes to src/eskil.tcl.
︙ | ︙ | |||
139 140 141 142 143 144 145 | # Insert lineno and text proc insertLine {top side line text {tag {equal}} {linetag {}}} { if {$::eskil($top,view) eq "table"} { insertLineTable $top $side $line $text $tag return } $::widgets($top,wDiff$side) insert end "$text\n" $tag | | | | | | 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | # Insert lineno and text proc insertLine {top side line text {tag {equal}} {linetag {}}} { if {$::eskil($top,view) eq "table"} { insertLineTable $top $side $line $text $tag return } $::widgets($top,wDiff$side) insert end "$text\n" $tag if {$linetag eq ""} { set linetag $tag } if {$tag != "equal"} { set linetag "hl$::HighLightCount $linetag" } $::widgets($top,wLine$side) insert end [myFormL $line] $linetag } # Insert an empty line on one side of the diff. proc emptyLine {top side {highlight 1}} { if {$::eskil($top,view) eq "table"} { # This should be ignored for table return |
︙ | ︙ | |||
610 611 612 613 614 615 616 | # Marked the whole line as deleted/inserted set textline1 [lindex $block1 $t1] set textline2 [lindex $block2 $t2] if {$::eskil($top,view) eq "table"} { # Fall back to proc that handles table insertMatchingLinesTable $top $textline1 $textline2 } else { | | < < < < | < < | 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 | # Marked the whole line as deleted/inserted set textline1 [lindex $block1 $t1] set textline2 [lindex $block2 $t2] if {$::eskil($top,view) eq "table"} { # Fall back to proc that handles table insertMatchingLinesTable $top $textline1 $textline2 } else { insertLine $top 1 $doingLine1 $textline1 new1 change insertLine $top 2 $doingLine2 $textline2 new2 change incr doingLine1 incr doingLine2 } if {$finegrain} { addChange $top 1 change [expr {$line1 + $t1}] 1 \ [expr {$line2 + $t2}] 1 nextHighlight $top |
︙ | ︙ |