summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2022-08-10 10:46:17 -0500
committerJunio C Hamano <gitster@pobox.com>2022-08-10 12:39:35 -0700
commitb6014eeac0963ccad3f769fc6cdd09a4a64f478d (patch)
tree3be147341bcb7c8791ab0cf2862dc404366e8d8e /commit.c
parentffcc33f6a6923ade435a65d6cba751b3b95e6fd8 (diff)
mergetools: vimdiff: fix single window layouts
Layouts with a single window other than "MERGED" do not work (e.g. "LOCAL" or "MERGED+LOCAL"). This is because as the documentation of bufdo says: The last buffer (or where an error occurred) becomes the current buffer. And we do always do bufdo the end. Additionally, we do it only once, when it should be per tab. Fix this by doing it once per tab right after it's created and before any buffer is switched. Cc: Fernando Ramos <greenfoo@u92.eu> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Reviewed-by: Fernando Ramos <greenfoo@u92.eu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions