diff options
author | 0xAdk <29005635+0xAdk@users.noreply.github.com> | 2023-01-16 01:37:58 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 01:37:58 -0800 |
commit | be3d30cacec141bdab6d4bfb94a6fd184479de3b (patch) | |
tree | 4626d1000210a5e2ddbbd76d262d18b4fb549b83 | |
parent | 34b973b1d9e3b0c6f546e3aa661c29edd5a1ab87 (diff) | |
download | rneovim-be3d30cacec141bdab6d4bfb94a6fd184479de3b.tar.gz rneovim-be3d30cacec141bdab6d4bfb94a6fd184479de3b.tar.bz2 rneovim-be3d30cacec141bdab6d4bfb94a6fd184479de3b.zip |
fix(diff): "nvim -d" should only diff arglist files #21829
Co-authored-by: 0xadk <0xadk@users.noreply.github.com>
-rw-r--r-- | src/nvim/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index cc78f7d36f..f00d09b748 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -539,7 +539,9 @@ int main(int argc, char **argv) if (params.diff_mode) { // set options in each window for "nvim -d". FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { - diff_win_options(wp, true); + if (!wp->w_arg_idx_invalid) { + diff_win_options(wp, true); + } } } |