Skip to content

Commit a977953

Browse files
committed
gitk: Fix bug introduced by "gitk: Fix "wrong # coordinates" error on reload"
Commit 94503a6 ("gitk: Fix "wrong # coordinates" error on reload") was correct as far as it went, but introduced a problem because it didn't also clear out boldrows and boldnamerows in clear_display. This resulted in Tcl errors after scrolling through the graph for a while if some rows were highlighted. This fixes it. Signed-off-by: Paul Mackerras <[email protected]>
1 parent 94b4a69 commit a977953

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gitk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5125,14 +5125,16 @@ proc drawvisible {} {
51255125
proc clear_display {} {
51265126
global iddrawn linesegs need_redisplay nrows_drawn
51275127
global vhighlights fhighlights nhighlights rhighlights
5128-
global linehtag linentag linedtag
5128+
global linehtag linentag linedtag boldrows boldnamerows
51295129

51305130
allcanvs delete all
51315131
catch {unset iddrawn}
51325132
catch {unset linesegs}
51335133
catch {unset linehtag}
51345134
catch {unset linentag}
51355135
catch {unset linedtag}
5136+
set boldrows {}
5137+
set boldnamerows {}
51365138
catch {unset vhighlights}
51375139
catch {unset fhighlights}
51385140
catch {unset nhighlights}

0 commit comments

Comments
 (0)