Skip to content
Permalink
Browse files

fixup! git-gui: fix exception when trying to stage with empty file list

  • Loading branch information...
dscho committed May 29, 2017
1 parent 26173ab commit 8b4e64d6053204113965ea1b84bd294c9ffeef41
Showing with 7 additions and 1 deletion.
  1. +7 −1 git-gui/git-gui.sh
@@ -2532,7 +2532,13 @@ proc toggle_or_diff {mode w args} {
}
}
set path [lindex $file_lists($w) [expr {$lno - 1}]]
if {![info exists file_lists]
|| ![info exists file_lists($w)]
|| [llength $file_lists($w)] < $lno - 1} {
set path {}
} else {
set path [lindex $file_lists($w) [expr {$lno - 1}]]
}
if {$path eq {}} {
set last_clicked {}
return

0 comments on commit 8b4e64d

Please sign in to comment.
You can’t perform that action at this time.