summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
author=?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>2022-05-15 13:59:11 +0100
committerBram Moolenaar <Bram@vim.org>2022-05-15 13:59:11 +0100
commitdd41037552c1be3548d2ce34bb1c889f14edb553 (patch)
tree92d4352bf89c6918c9c7e5254c438bc183997bfb /src/quickfix.c
parentb559b302e0ecc6fced03d5201dc30f10cff7af0a (diff)
downloadvim-git-dd41037552c1be3548d2ce34bb1c889f14edb553.tar.gz
patch 8.2.4958: a couple conditions are always truev8.2.4958
Problem: A couple conditions are always true. Solution: Remove the conditions. (Goc Dundar, closes #10428)
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index aab1683f3..dde3f9d56 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -2494,7 +2494,7 @@ qf_push_dir(char_u *dirbuf, struct dir_stack_T **stackptr, int is_file_stack)
// store directory on the stack
if (vim_isAbsName(dirbuf)
|| (*stackptr)->next == NULL
- || (*stackptr && is_file_stack))
+ || is_file_stack)
(*stackptr)->dirname = vim_strsave(dirbuf);
else
{