The current path for what we see the diff is not in the list of selected paths. But when we add single paths (with Ctrl) to the set the current path would not be used when the action is performed. Fix this by explicitly putting the path into the list before we start showing the diff. Signed-off-by: Bert Wesarg <bert.wesarg@xxxxxxxxxxxxxx> --- git-gui.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/git-gui.sh b/git-gui.sh index f897160..e5dd8bc 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -2474,6 +2474,7 @@ proc toggle_or_diff {w x y} { [concat $after [list ui_ready]] } } else { + set selected_paths($path) 1 show_diff $path $w $lno } } -- 1.7.6.789.gb4599 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html