]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.4337: part of condition is always true v8.2.4337
author=?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>
Wed, 9 Feb 2022 15:20:39 +0000 (15:20 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 9 Feb 2022 15:20:39 +0000 (15:20 +0000)
Problem:    Part of condition is always true.
Solution:   Remove that part of the condition. (closes #9729)

src/filepath.c
src/version.c

index 4abf8f498dd9438d123e9a27f3e36b172e0cc21f..929fa56a4d05df8e39332e4610d06110f0bf5f43 100644 (file)
@@ -416,7 +416,7 @@ repeat:
        // Need full path first (use expand_env() to remove a "~/")
        if (!has_fullname && !has_homerelative)
        {
-           if ((c == '.' || c == '~') && **fnamep == '~')
+           if (**fnamep == '~')
                p = pbuf = expand_env_save(*fnamep);
            else
                p = pbuf = FullName_save(*fnamep, FALSE);
index 824f172642fdfde5d2e2407b6a3b5c2c12d98d11..a02fefdc4c4e78d2329dd65a9b270358210bf5b7 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4337,
 /**/
     4336,
 /**/