mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(diff): "nvim -d" should only diff arglist files #21829
Co-authored-by: 0xadk <0xadk@users.noreply.github.com>
This commit is contained in:
parent
34b973b1d9
commit
be3d30cace
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user