Yup! I'm sorry about that. Here's the patch with your suggestion with
the diff the correct way around.
--- menu.vim.orig 2022-06-28 07:08:36.000000000 -0600
+++ menu.vim 2023-05-02 20:20:00.052527000 -0600
@@ -599,8 +599,10 @@
s:XxdFind()
exe ':%!' .. g:xxdprogram .. ' -r'
endif
- set ft=
- doautocmd filetypedetect BufReadPost
+ if exists('#filetypedetect') && exists('#BufReadPost')
+ set ft=
+ doautocmd filetypedetect BufReadPost
+ endif
&mod = mod
enddef
>
>
> Instead of checking for "did_load_filetypes" a more direct condition
> would be to use:
>
> if exists('#filetypedetect') && exists('#BufReadPost')
> set ft=
> doautocmd filetypedetect BufReadPost
> endif
>
> Does that work for you?
Yup. Works great.
Would you like me to file a bug and create a patch on vim-dev against the bug?