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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220116111429.013911C053F%40moolenaar.net.

Raspunde prin e-mail lui