# HG changeset patch # User Bram Moolenaar # Date 1644420603 -3600 # Node ID 9a8992489b71b5dbffa09b09da6f01424cfbe0ac # Parent 90001b1f2930daf76088b355a0dc51e6e779439d patch 8.2.4337: part of condition is always true Commit: https://github.com/vim/vim/commit/78a8404f8b6ad0152614d5fdc3ec277444c1eee5 Author: =?UTF-8?q?Dundar=20G=C3=B6c?= Date: Wed Feb 9 15:20:39 2022 +0000 patch 8.2.4337: part of condition is always true Problem: Part of condition is always true. Solution: Remove that part of the condition. (closes https://github.com/vim/vim/issues/9729) diff --git a/src/filepath.c b/src/filepath.c --- a/src/filepath.c +++ b/src/filepath.c @@ -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); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4337, +/**/ 4336, /**/ 4335,