runtime(netrw): using inefficient highlight pattern for 'mf'

Commit: 
https://github.com/vim/vim/commit/c18a9d5835456e0e47e943b673d631caaebdbea3
Author: yasuda <yas...@kyoto-sr.co.jp>
Date:   Thu Sep 19 18:09:51 2024 +0200

    runtime(netrw): using inefficient highlight pattern for 'mf'
    
    Fixes E872 too many '(' in highlight pattern for `mf` selection
    
    fixup for #15551
    closes: #15700
    
    Signed-off-by: yasuda <yas...@kyoto-sr.co.jp>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim
index fef151a64..b4a70e173 100644
--- a/runtime/autoload/netrw.vim
+++ b/runtime/autoload/netrw.vim
@@ -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 =~ ' $'
    let trailer = '\>[@=|\/\*]\=\ze\%(  \|      \|$\)'
   else

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1srJoD-009s19-7f%40256bit.org.

Raspunde prin e-mail lui