@@ -2038,7 +2038,7 @@ proc makewindow {} {
2038
2038
set file {
2039
2039
mc " File" cascade {
2040
2040
{mc " Update" command updatecommits -accelerator F5}
2041
- {mc " Reload" command reloadcommits -accelerator Meta1 -F5}
2041
+ {mc " Reload" command reloadcommits -accelerator Shift -F5}
2042
2042
{mc " Reread references" command rereadrefs}
2043
2043
{mc " List references" command showrefs -accelerator F2}
2044
2044
{xx " " separator}
@@ -2495,7 +2495,7 @@ proc makewindow {} {
2495
2495
bindkey ? {dofind -1 1}
2496
2496
bindkey f nextfile
2497
2497
bind . <F5> updatecommits
2498
- bind . <$M1B -F5> reloadcommits
2498
+ bind . <Shift -F5> reloadcommits
2499
2499
bind . <F2> showrefs
2500
2500
bind . <Shift-F4> {newview 0}
2501
2501
catch { bind . <Shift-Key-XF86_Switch_VT_4> {newview 0} }
@@ -10599,7 +10599,7 @@ proc movedhead {hid head} {
10599
10599
}
10600
10600
10601
10601
proc changedrefs {} {
10602
- global cached_dheads cached_dtags cached_atags
10602
+ global cached_dheads cached_dtags cached_atags cached_tagcontent
10603
10603
global arctags archeads arcnos arcout idheads idtags
10604
10604
10605
10605
foreach id [concat [array names idheads] [array names idtags]] {
@@ -10611,6 +10611,7 @@ proc changedrefs {} {
10611
10611
}
10612
10612
}
10613
10613
}
10614
+ catch {unset cached_tagcontent}
10614
10615
catch {unset cached_dtags}
10615
10616
catch {unset cached_atags}
10616
10617
catch {unset cached_dheads}
@@ -10663,7 +10664,7 @@ proc listrefs {id} {
10663
10664
}
10664
10665
10665
10666
proc showtag {tag isnew} {
10666
- global ctext tagcontents tagids linknum tagobjid
10667
+ global ctext cached_tagcontent tagids linknum tagobjid
10667
10668
10668
10669
if {$isnew } {
10669
10670
addtohistory [list showtag $tag 0] savectextpos
@@ -10672,13 +10673,13 @@ proc showtag {tag isnew} {
10672
10673
clear_ctext
10673
10674
settabs 0
10674
10675
set linknum 0
10675
- if {![info exists tagcontents ($tag )]} {
10676
+ if {![info exists cached_tagcontent ($tag )]} {
10676
10677
catch {
10677
- set tagcontents ($tag ) [exec git cat-file tag $tag ]
10678
+ set cached_tagcontent ($tag ) [exec git cat-file tag $tag ]
10678
10679
}
10679
10680
}
10680
- if {[info exists tagcontents ($tag )]} {
10681
- set text $tagcontents ($tag)
10681
+ if {[info exists cached_tagcontent ($tag )]} {
10682
+ set text $cached_tagcontent ($tag)
10682
10683
} else {
10683
10684
set text " [ mc " Tag" ] : $tag \n [ mc " Id" ] : $tagids($tag) "
10684
10685
}
0 commit comments