diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-13 19:25:50 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-13 19:25:50 +0000 |
commit | 3049fcf0a189b0fea8468fa308887b8252d93dce (patch) | |
tree | bcbcca769c283aebf251833b7e401ce02fa4d82f /src/scriptfile.c | |
parent | 4050305bfd24e7d0e241f617519bd0fa86263b9a (diff) | |
download | vim-git-3049fcf0a189b0fea8468fa308887b8252d93dce.tar.gz |
patch 8.2.4082: check for autoload file name and prefix failsv8.2.4082
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.
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r-- | src/scriptfile.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c index 56186ff07..0d39f38fb 100644 --- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -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; |