diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-05-14 18:50:25 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-05-14 18:50:25 +0100 |
commit | b7398fe41c9e1e731d058105a34158871ee83e3f (patch) | |
tree | d1d20b18bffd1bc554fbe0212eee3643adacda54 /runtime/menu.vim | |
parent | e5d91ba1de83949eb9357c0fb8cbd91e7e69be6f (diff) |
Update runtime files
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 dc90eeb607..f8f7e7ad73 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. @@ -607,7 +607,9 @@ def s:XxdBack() exe ':%!' .. g:xxdprogram .. ' -r' endif set ft= - doautocmd filetypedetect BufReadPost + if exists('#filetypedetect') && exists('#BufReadPost') + doautocmd filetypedetect BufReadPost + endif &mod = mod enddef |