mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	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
c18a9d5835
Co-authored-by: yasuda <yasuda@kyoto-sr.co.jp>
			
			
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user