mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00: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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user