Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Handle context=0 corner cases better [7084745f4b54] |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
710b764b817c045e0751d663f7fb16bd |
User & Date: | spjutp 2012-02-07 17:33:49.446 |
Context
2012-02-07
| ||
17:36 | Handle missing directory check-in: 76fb548020 user: peter tags: trunk | |
17:33 | Handle context=0 corner cases better [7084745f4b54] check-in: 710b764b81 user: spjutp tags: trunk | |
2011-12-04
| ||
15:10 | Polished Fossil page. check-in: 68e91ae209 user: peter tags: trunk | |
Changes
Changes to src/eskil.tcl.
︙ | ︙ | |||
717 718 719 720 721 722 723 | set limit [expr {$::eskil($top,limitlines) - $::eskil($top,mapMax)}] if {$limit < 0} { set limit 0 } } if {$limit >= 0} {disallowEdit $top} | > > | | | | | | | | | | | | | | | | > | | | > > | 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 | set limit [expr {$::eskil($top,limitlines) - $::eskil($top,mapMax)}] if {$limit < 0} { set limit 0 } } if {$limit >= 0} {disallowEdit $top} # Unless we are in "only diffs", display remaining lines to the limit if {$limit != 0} { set t 0 while {[gets $ch2 apa] != -1} { if {$line2 > 0 && $doingLine2 > $line2} break insertLine $top 2 $doingLine2 $apa incr doingLine2 addMapLines $top 1 incr t if {$limit >= 0 && $t >= $limit} break } set t 0 while {[gets $ch1 apa] != -1} { if {$line1 > 0 && $doingLine1 > $line1} break insertLine $top 1 $doingLine1 $apa incr doingLine1 incr t if {$limit >= 0 && $t >= $limit} break } } return } # Is this a change block, a delete block or an insert block? if {$n1 == 0} {set tag2 new2} else {set tag2 change} if {$n2 == 0} {set tag1 new1} else {set tag1 change} # Display all equal lines before next diff, or skip if context is set. # If context is on, only skip a section if the blank # line replaces at least 3 lines. set limit -1 if {$Pref(context) == 0} { set limit 0 } elseif {$Pref(context) > 0 && \ ($line1 - $doingLine1 > (2 * $Pref(context) + 2))} { set limit $Pref(context) } if {$doingLine1 == 1} { set allowStartFill 0 } else { set allowStartFill 1 |
︙ | ︙ |