]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(netrw): using inefficient highlight pattern for 'mf'
authoryasuda <yasuda@kyoto-sr.co.jp>
Thu, 19 Sep 2024 16:09:51 +0000 (18:09 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 19 Sep 2024 16:09:51 +0000 (18:09 +0200)
Fixes E872 too many '(' in highlight pattern for `mf` selection

fixup for #15551
closes: #15700

Signed-off-by: yasuda <yasuda@kyoto-sr.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/netrw.vim

index fef151a641aa41975cce85b352b9d8c9703df993..b4a70e173a4af5fcc47a8c5f02d5cad19b9c1332 100644 (file)
@@ -24,6 +24,7 @@
 "   2024 Aug 22 by Vim Project: fix mf-selection highlight (#15551)
 "   2024 Aug 22 by Vim Project: adjust echo output of mx command (#15550)
 "   2024 Sep 15 by Vim Project: more strict confirmation dialog (#15680)
+"   2024 Sep 19 by Vim Project: mf-selection highlight uses wrong pattern (#15700)
 "   }}}
 " Former Maintainer:   Charles E Campbell
 " GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim
@@ -6890,7 +6891,7 @@ fun! s:NetrwMarkFile(islocal,fname)
 
   let ykeep   = @@
   let curbufnr= bufnr("%")
-  let leader= '\(^\|\s\)\zs'
+  let leader= '\%(^\|\s\)\zs'
   if a:fname =~ '\a$'
    let trailer = '\>[@=|\/\*]\=\ze\%(  \|\t\|$\)'
   else