Patch 8.2.4104

7 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 16, 2022, 6:14:35 AM1/16/22
to vim...@googlegroups.com

Patch 8.2.4104
Problem: Vim9: lower casing the autoload prefix causes problems.
Solution: Always store the prefix with case preserved.
Files: src/scriptfile.c, src/testdir/test_vim9_import.vim


*** ../vim-8.2.4103/src/scriptfile.c 2022-01-13 19:25:44.003786906 +0000
--- src/scriptfile.c 2022-01-16 11:04:55.706578804 +0000
***************
*** 2156,2166 ****

if (p == NULL)
return NULL;
- #ifdef CASE_INSENSITIVE_FILENAME
- prefix = strlow_save(p);
- #else
prefix = vim_strsave(p);
- #endif
if (prefix == NULL)
return NULL;

--- 2156,2162 ----
*** ../vim-8.2.4103/src/testdir/test_vim9_import.vim 2022-01-15 21:08:11.899395839 +0000
--- src/testdir/test_vim9_import.vim 2022-01-16 11:11:13.902165867 +0000
***************
*** 1485,1490 ****
--- 1485,1499 ----
END
CheckScriptSuccess(lines)

+ if !has('fname_case')
+ lines =<< trim END
+ vim9script
+ import autoload 'CaseSensitive.vim'
+ import autoload 'casesensitive.vim'
+ END
+ CheckScriptFailure(lines, 'E1262:')
+ endif
+
delete('Xdir', 'rf')
&rtp = save_rtp
enddef
*** ../vim-8.2.4103/src/version.c 2022-01-15 21:44:39.832970792 +0000
--- src/version.c 2022-01-16 11:05:50.074529249 +0000
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4104,
/**/

--
Futility Factor: No experiment is ever a complete failure - it can always
serve as a negative example.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages