Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
27620:90001b1f2930 | 27621:9a8992489b71 |
---|---|
414 } | 414 } |
415 pbuf = NULL; | 415 pbuf = NULL; |
416 // Need full path first (use expand_env() to remove a "~/") | 416 // Need full path first (use expand_env() to remove a "~/") |
417 if (!has_fullname && !has_homerelative) | 417 if (!has_fullname && !has_homerelative) |
418 { | 418 { |
419 if ((c == '.' || c == '~') && **fnamep == '~') | 419 if (**fnamep == '~') |
420 p = pbuf = expand_env_save(*fnamep); | 420 p = pbuf = expand_env_save(*fnamep); |
421 else | 421 else |
422 p = pbuf = FullName_save(*fnamep, FALSE); | 422 p = pbuf = FullName_save(*fnamep, FALSE); |
423 } | 423 } |
424 else | 424 else |