comparison src/scriptfile.c @ 27106:d7e6b85dd89d v8.2.4082

patch 8.2.4082: check for autoload file name and prefix fails Commit: https://github.com/vim/vim/commit/3049fcf0a189b0fea8468fa308887b8252d93dce Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 13 19:25:50 2022 +0000 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.
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Jan 2022 20:30:06 +0100
parents 9897dd3c6530
children 2d0ea3f9ffe1
comparison
equal deleted inserted replaced
27105:dae3c23512fb 27106:d7e6b85dd89d
2154 char_u *p = script_name_after_autoload(si); 2154 char_u *p = script_name_after_autoload(si);
2155 char_u *prefix; 2155 char_u *prefix;
2156 2156
2157 if (p == NULL) 2157 if (p == NULL)
2158 return NULL; 2158 return NULL;
2159 #ifdef CASE_INSENSITIVE_FILENAME
2159 prefix = strlow_save(p); 2160 prefix = strlow_save(p);
2161 #else
2162 prefix = vim_strsave(p);
2163 #endif
2160 if (prefix == NULL) 2164 if (prefix == NULL)
2161 return NULL; 2165 return NULL;
2162 2166
2163 // replace all '/' with '#' and locate ".vim" at the end 2167 // replace all '/' with '#' and locate ".vim" at the end
2164 for (p = prefix; *p != NUL; p += mb_ptr2len(p)) 2168 for (p = prefix; *p != NUL; p += mb_ptr2len(p))