mirror of
https://github.com/vim/vim.git
synced 2025-10-05 05:34:07 -04:00
patch 8.1.0662: needlessly searching for tilde in string
Problem: Needlessly searching for tilde in string. Solution: Only check the first character. (James McCoy, closes #3734)
This commit is contained in:
@@ -4924,7 +4924,7 @@ home_replace(
|
||||
homedir_env = NULL;
|
||||
|
||||
#if defined(FEAT_MODIFY_FNAME) || defined(FEAT_EVAL)
|
||||
if (homedir_env != NULL && vim_strchr(homedir_env, '~') != NULL)
|
||||
if (homedir_env != NULL && *homedir_env == '~')
|
||||
{
|
||||
int usedlen = 0;
|
||||
int flen;
|
||||
|
Reference in New Issue
Block a user