summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author=?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>2022-02-09 15:20:39 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-09 15:20:39 +0000
commit78a8404f8b6ad0152614d5fdc3ec277444c1eee5 (patch)
tree4c314ce91f7868aa77675b3311651162ef9f67f8
parent769f5895ebfd10535a0ad978f071da8f20178fc6 (diff)
downloadvim-git-78a8404f8b6ad0152614d5fdc3ec277444c1eee5.tar.gz
patch 8.2.4337: part of condition is always truev8.2.4337
Problem: Part of condition is always true. Solution: Remove that part of the condition. (closes #9729)
-rw-r--r--src/filepath.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/filepath.c b/src/filepath.c
index 4abf8f498..929fa56a4 100644
--- 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
index 824f17264..a02fefdc4 100644
--- 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,