0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4082: check for autoload file name and prefix fails

Problem:    Check for autoload file name and prefix fails. (Christian J.
            Robinson)
Solution:   Only lower case the prefix on systems where the file name is not
            case sensitive.
This commit is contained in:
Bram Moolenaar
2022-01-13 19:25:50 +00:00
parent 4050305bfd
commit 3049fcf0a1
3 changed files with 31 additions and 0 deletions

View File

@@ -2156,7 +2156,11 @@ get_autoload_prefix(scriptitem_T *si)
if (p == NULL)
return NULL;
#ifdef CASE_INSENSITIVE_FILENAME
prefix = strlow_save(p);
#else
prefix = vim_strsave(p);
#endif
if (prefix == NULL)
return NULL;