mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #9411 from jamessan/vim-8.1.0662
vim-patch:8.1.0662: needlessly searching for tilde in string
This commit is contained in:
commit
fa5182489a
@ -779,7 +779,7 @@ size_t home_replace(const buf_T *const buf, const char_u *src,
|
||||
char *homedir_env_mod = (char *)homedir_env;
|
||||
bool must_free = false;
|
||||
|
||||
if (homedir_env_mod != NULL && strchr(homedir_env_mod, '~') != NULL) {
|
||||
if (homedir_env_mod != NULL && *homedir_env_mod == '~') {
|
||||
must_free = true;
|
||||
size_t usedlen = 0;
|
||||
size_t flen = strlen(homedir_env_mod);
|
||||
|
Loading…
Reference in New Issue
Block a user