comparison src/quickfix.c @ 28871:18604231a1d1 v8.2.4958

patch 8.2.4958: a couple conditions are always true Commit: https://github.com/vim/vim/commit/dd41037552c1be3548d2ce34bb1c889f14edb553 Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> Date: Sun May 15 13:59:11 2022 +0100 patch 8.2.4958: a couple conditions are always true Problem: A couple conditions are always true. Solution: Remove the conditions. (Goc Dundar, closes https://github.com/vim/vim/issues/10428)
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 May 2022 15:00:02 +0200
parents 4dcccb2673fe
children b90bca860b5a
comparison
equal deleted inserted replaced
28870:a865bf1c3ca9 28871:18604231a1d1
2492 *stackptr = ds_new; 2492 *stackptr = ds_new;
2493 2493
2494 // store directory on the stack 2494 // store directory on the stack
2495 if (vim_isAbsName(dirbuf) 2495 if (vim_isAbsName(dirbuf)
2496 || (*stackptr)->next == NULL 2496 || (*stackptr)->next == NULL
2497 || (*stackptr && is_file_stack)) 2497 || is_file_stack)
2498 (*stackptr)->dirname = vim_strsave(dirbuf); 2498 (*stackptr)->dirname = vim_strsave(dirbuf);
2499 else 2499 else
2500 { 2500 {
2501 // Okay we don't have an absolute path. 2501 // Okay we don't have an absolute path.
2502 // dirbuf must be a subdir of one of the directories on the stack. 2502 // dirbuf must be a subdir of one of the directories on the stack.