Skip to content

Commit 2263a05

Browse files
committed
Merge branch 'dw/mergetool-vim-window-shuffle' into maint
The vimdiff backend for "git mergetool" has been tweaked to arrange and number buffers in the order that would match the expectation of majority of people who read left to right, then top down and assign buffers 1 2 3 4 "mentally" to local base remote merge windows based on that order. * dw/mergetool-vim-window-shuffle: mergetool: reorder vim/gvim buffers in three-way diffs
2 parents fa7b63d + 2300328 commit 2263a05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mergetools/vimdiff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ merge_cmd () {
99
gvimdiff|vimdiff)
1010
if $base_present
1111
then
12-
"$merge_tool_path" -f -d -c 'wincmd J' \
13-
"$MERGED" "$LOCAL" "$BASE" "$REMOTE"
12+
"$merge_tool_path" -f -d -c '4wincmd w | wincmd J' \
13+
"$LOCAL" "$BASE" "$REMOTE" "$MERGED"
1414
else
1515
"$merge_tool_path" -f -d -c 'wincmd l' \
1616
"$LOCAL" "$MERGED" "$REMOTE"

0 commit comments

Comments
 (0)