From: zeertzjq Date: Mon, 19 Jan 2026 19:04:47 +0000 (+0000) Subject: runtime(menu): fix space before Tab and trailing space X-Git-Tag: v9.1.2099~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5f173cf90a123e5116f0b54f19eb7d85dcc7acf;p=thirdparty%2Fvim.git runtime(menu): fix space before Tab and trailing space closes: #19209 Signed-off-by: zeertzjq Signed-off-by: Christian Brabandt --- diff --git a/runtime/menu.vim b/runtime/menu.vim index f75c834e49..6a1d947da8 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: The Vim Project -" Last Change: 2026 Jan 18 +" Last Change: 2026 Jan 19 " Former Maintainer: Bram Moolenaar " Note that ":an" (short for ":anoremenu") is often used to make a menu work @@ -84,7 +84,7 @@ an 9999.40 &Help.&Find\.\.\. :call Helpfind() an 9999.45 &Help.-sep1- an 9999.50 &Help.&Credits :help credits an 9999.60 &Help.Co&pying :help copying -an 9999.70 &Help.&Sponsor :help sponsor +an 9999.70 &Help.&Sponsor :help sponsor an 9999.70 &Help.O&rphans :help kcc an 9999.75 &Help.-sep2- an 9999.80 &Help.&Version :version @@ -175,7 +175,7 @@ vnoremenu 20.340 &Edit.Cu&t"+x "+x vnoremenu 20.350 &Edit.&Copy"+y "+y cnoremenu 20.350 &Edit.&Copy"+y if exists(':tlmenu') - tlnoremenu 20.350 &Edit.&Copy"+y : + tlnoremenu 20.350 &Edit.&Copy"+y : endif nnoremenu 20.360 &Edit.&Paste"+gP "+gP cnoremenu &Edit.&Paste"+gP + @@ -748,14 +748,14 @@ def s:BMShow() # Remove old menu, if it exists; keep one entry to avoid a torn off menu to # disappear. Use try/catch to avoid setting v:errmsg - try - unmenu &Buffers - catch + try + unmenu &Buffers + catch endtry exe 'noremenu ' .. g:bmenu_priority .. ".1 &Buffers.Dummy l" - try - unmenu! &Buffers - catch + try + unmenu! &Buffers + catch endtry # create new menu