emacs-vdiff icon indicating copy to clipboard operation
emacs-vdiff copied to clipboard

Swaps visual position of buffers

Open mvz opened this issue 4 years ago • 1 comments

I just had buffer A on the left of my emacs window, and buffer B on the right. Starting from buffer B I executed vdiff-buffers. It correctly guessed the first buffer to use was B, and the second A. The result was that B was on the left and A on the right.

mvz avatar Nov 10 '20 09:11 mvz

This is expected. vdiff will use your current buffer as the default choice for the left-hand side buffer and whatever it finds in the next window (according to next-window) as a default choice for the right-hand window. You can certainly override these defaults.

Are you suggesting that it should work differently in this case? I suppose I could detect a split window layout and assume that those are the buffers you want in that arrangement, but that doesn't seem foolproof either.

justbur avatar Nov 13 '20 01:11 justbur