I've changed my get_autoload_prefix() to always use vim_strsave() and I haven't noticed any issues yet.
On Fri, Jan 14, 2022 at 6:33 AM Christian Robinson <hept...@gmail.com> wrote: > > > > On Jan 14, 2022, at 6:20 AM, Bram Moolenaar <b...@moolenaar.net> wrote: > > > > > > Christian J. Robinson wrote: > > > >> With the "import autoload 'CaseRegression.vim'" you can use "echo > >> CaseRegression#CaseRegression()" on Linux, but on Windows it has to be > >> "echo caseregression#CaseRegression()". This inconsistency is the > problem > >> I'm facing. > > > > Is that at the script level or in a :def function? Or both? > > I'm using the # form in mappings because the . > form is unavailable at that point. > > > You can try changing get_autoload_prefix() to always use vim_strsave() > > instead of strlow_save() on windows. But I wonder what else will fail > > then. > > Right now I'm just working around it on Windows by creating a reference to > the proper case. > > if !has('fname_case') > g:CaseRegression#CaseRegression = CaseRegression CaseRegression > endif > -- Christian J. Robinson <hept...@gmail.com> -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAK14FZK1kHHnZnYth2AnSNcVrP1gdazZeG%2B74JpO-yU3H8ZMtw%40mail.gmail.com.