fix(diff): "nvim -d" should only diff arglist files #21829

Co-authored-by: 0xadk <0xadk@users.noreply.github.com>
This commit is contained in:
0xAdk 2023-01-16 01:37:58 -08:00 committed by GitHub
parent 34b973b1d9
commit be3d30cace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}
}