mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
refactor(diff.c): internal does not need diffstyle
This commit is contained in:
@@ -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
|
bool notset = true; // block "*dp" not set yet
|
||||||
diffstyle_T diffstyle = DIFF_NONE;
|
diffstyle_T diffstyle = DIFF_NONE;
|
||||||
|
|
||||||
if (dio->dio_internal) {
|
if (!dio->dio_internal) {
|
||||||
diffstyle = DIFF_UNIFIED;
|
|
||||||
} else {
|
|
||||||
fd = os_fopen(dout->dout_fname, "r");
|
fd = os_fopen(dout->dout_fname, "r");
|
||||||
if (fd == NULL) {
|
if (fd == NULL) {
|
||||||
emsg(_("E98: Cannot read diff output"));
|
emsg(_("E98: Cannot read diff output"));
|
||||||
|
Reference in New Issue
Block a user