aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-09-19 18:55:36 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-09-21 11:25:41 +0200
commit82f329a41d0de3bf66a2d91dbcc8769e8549491e (patch)
treef20e254cdded5f43623f84d0ed2a47325080176c
parente268fcbdaa1e0e0cee3b513e62581d35bb937d40 (diff)
downloadrneovim-82f329a41d0de3bf66a2d91dbcc8769e8549491e.tar.gz
rneovim-82f329a41d0de3bf66a2d91dbcc8769e8549491e.tar.bz2
rneovim-82f329a41d0de3bf66a2d91dbcc8769e8549491e.zip
vim-patch:c18a9d5: runtime(netrw): using inefficient highlight pattern for 'mf'
Fixes E872 too many '(' in highlight pattern for `mf` selection fixup for vim/vim#15551 closes: vim/vim#15700 https://github.com/vim/vim/commit/c18a9d5835456e0e47e943b673d631caaebdbea3 Co-authored-by: yasuda <yasuda@kyoto-sr.co.jp>
-rw-r--r--runtime/autoload/netrw.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim
index c38529d0e5..386438852b 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
@@ -6827,7 +6828,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