Skip to content

Commit 513b80f

Browse files
author
Git for Windows Build Agent
committed
Merge branch 'strg-t-in-git-gui'
This does not (yet) resolve the problem that Strg+T with multiple selected lines fails to (un)stage them all, but it addresses one of the reported Ctrl+T issues. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 8611e8e + d112d3e commit 513b80f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

git-gui/git-gui.sh

+4
Original file line numberDiff line numberDiff line change
@@ -2516,6 +2516,10 @@ proc toggle_or_diff {mode w args} {
25162516
if {$last_clicked ne {}} {
25172517
set lno [lindex $last_clicked 1]
25182518
} else {
2519+
if {[llength $file_lists($w)] == 0} {
2520+
set last_clicked {}
2521+
return
2522+
}
25192523
set lno [expr {int([lindex [$w tag ranges in_diff] 0])}]
25202524
}
25212525
if {$mode eq "toggle"} {

0 commit comments

Comments
 (0)