Mercurial > vim
diff src/filepath.c @ 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 | 4c7bb6fd383f |
children | bfce04a99561 |
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);