aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r--src/nvim/diff.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c
index ac637c2c70..011632a4ef 100644
--- a/src/nvim/diff.c
+++ b/src/nvim/diff.c
@@ -2944,11 +2944,6 @@ void ex_diffgetput(exarg_T *eap)
// Set curwin/curbuf to buf and save a few things.
aucmd_prepbuf(&aco, curtab->tp_diffbuf[idx_other]);
- if (curbuf != curtab->tp_diffbuf[idx_other]) {
- // Could not find a window for this buffer, the rest is likely to
- // fail.
- goto theend;
- }
}
const int idx_from = eap->cmdidx == CMD_diffget ? idx_other : idx_cur;