We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26173ab commit 8b4e64dCopy full SHA for 8b4e64d
git-gui/git-gui.sh
@@ -2532,7 +2532,13 @@ proc toggle_or_diff {mode w args} {
2532
}
2533
2534
2535
- set path [lindex $file_lists($w) [expr {$lno - 1}]]
+ if {![info exists file_lists]
2536
+ || ![info exists file_lists($w)]
2537
+ || [llength $file_lists($w)] < $lno - 1} {
2538
+ set path {}
2539
+ } else {
2540
+ set path [lindex $file_lists($w) [expr {$lno - 1}]]
2541
+ }
2542
if {$path eq {}} {
2543
set last_clicked {}
2544
return
0 commit comments