diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-05-15 09:38:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-15 09:38:32 +0200 |
commit | c11986ed1a816d7ebcb5a5f707e3ef884f278293 (patch) | |
tree | b6cdae22f19baf94e31ef7dd14cc8b1ba94514a8 /runtime/menu.vim | |
parent | 189e21ae50efe14d8446db11aee6b50f8022d99f (diff) | |
download | rneovim-c11986ed1a816d7ebcb5a5f707e3ef884f278293.tar.gz rneovim-c11986ed1a816d7ebcb5a5f707e3ef884f278293.tar.bz2 rneovim-c11986ed1a816d7ebcb5a5f707e3ef884f278293.zip |
vim-patch:b7398fe41c9e (#23627)
Update runtime files
https://github.com/vim/vim/commit/b7398fe41c9e1e731d058105a34158871ee83e3f
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'runtime/menu.vim')
-rw-r--r-- | runtime/menu.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/menu.vim b/runtime/menu.vim index 2671bb51cb..d6f22b314c 100644 --- a/runtime/menu.vim +++ b/runtime/menu.vim @@ -2,7 +2,7 @@ " You can also use this as a start for your own set of menus. " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2022 Nov 27 +" Last Change: 2023 May 03 " Note that ":an" (short for ":anoremenu") is often used to make a menu work " in all modes and avoid side effects from mappings defined by the user. @@ -599,7 +599,9 @@ func s:XxdBack() exe ':%!' . g:xxdprogram . ' -r' endif set ft= - doautocmd filetypedetect BufReadPost + if exists('#filetypedetect') && exists('#BufReadPost') + doautocmd filetypedetect BufReadPost + endif let &mod = mod endfun |