diff options
author | Lewis Russell <lewis6991@gmail.com> | 2022-10-24 14:34:19 +0100 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2022-10-24 14:34:19 +0100 |
commit | bf60b9134b7a2348dc080319e597ad4a1aaa859a (patch) | |
tree | f35a6a6398b57b3851f7c1f13ab349c45cf62969 /src/nvim/diff.c | |
parent | b2011bae3eecd5da1dbc0a228cccaa37ead029a9 (diff) | |
download | rneovim-bf60b9134b7a2348dc080319e597ad4a1aaa859a.tar.gz rneovim-bf60b9134b7a2348dc080319e597ad4a1aaa859a.tar.bz2 rneovim-bf60b9134b7a2348dc080319e597ad4a1aaa859a.zip |
refactor(diff.c): internal does not need diffstyle
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r-- | src/nvim/diff.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c index a12dfdd9b2..87ead61c36 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -1715,9 +1715,7 @@ static void diff_read(int idx_orig, int idx_new, diffio_T *dio) bool notset = true; // block "*dp" not set yet diffstyle_T diffstyle = DIFF_NONE; - if (dio->dio_internal) { - diffstyle = DIFF_UNIFIED; - } else { + if (!dio->dio_internal) { fd = os_fopen(dout->dout_fname, "r"); if (fd == NULL) { emsg(_("E98: Cannot read diff output")); |