changeset 27621:9a8992489b71 v8.2.4337

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?= <gocdundar@gmail.com> 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)
author Bram Moolenaar <Bram@vim.org>
date Wed, 09 Feb 2022 16:30:03 +0100
parents 90001b1f2930
children e33b6abfe384
files src/filepath.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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,