vim-patch:8.2.4337: part of condition is always true (#17352)

Problem:    Part of condition is always true.
Solution:   Remove that part of the condition. (closes vim/vim#9729)
78a8404f8b
This commit is contained in:
dundargoc
2022-02-09 18:55:01 +01:00
committed by GitHub
parent 9b0b4829c7
commit aff0ddd784

View File

@@ -10700,7 +10700,7 @@ repeat:
pbuf = NULL; pbuf = NULL;
// Need full path first (use expand_env() to remove a "~/") // Need full path first (use expand_env() to remove a "~/")
if (!has_fullname && !has_homerelative) { if (!has_fullname && !has_homerelative) {
if ((c == '.' || c == '~') && **fnamep == '~') { if (**fnamep == '~') {
p = pbuf = expand_env_save(*fnamep); p = pbuf = expand_env_save(*fnamep);
} else { } else {
p = pbuf = (char_u *)FullName_save((char *)*fnamep, FALSE); p = pbuf = (char_u *)FullName_save((char *)*fnamep, FALSE);