mirror of
https://github.com/git/git.git
synced 2026-01-22 16:38:48 +00:00
git-gui: allow Ctrl+T to toggle multiple paths
This fixes https://github.com/git-for-windows/git/issues/1012 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
@@ -2512,6 +2512,19 @@ proc toggle_or_diff {mode w args} {
|
||||
set pos [split [$w index @$x,$y] .]
|
||||
foreach {lno col} $pos break
|
||||
} else {
|
||||
if {$mode eq "toggle"} {
|
||||
if {$w eq $ui_workdir} {
|
||||
do_add_selection
|
||||
set last_clicked {}
|
||||
return
|
||||
}
|
||||
if {$w eq $ui_index} {
|
||||
do_unstage_selection
|
||||
set last_clicked {}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if {$last_clicked ne {}} {
|
||||
set lno [lindex $last_clicked 1]
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user