runtime(netrw): Fix `mf`-selected entry highlighting
Commit:
https://github.com/vim/vim/commit/38cfa2b6623c64e748be17739799da36ca2d76bf
Author: yasuda <[email protected]>
Date: Thu Aug 22 20:54:47 2024 +0200
runtime(netrw): Fix `mf`-selected entry highlighting
closes: https://github.com/vim/vim/issues/15551
Signed-off-by: yasuda <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim
index 17c4a6695..b64a16584 100644
--- a/runtime/autoload/netrw.vim
+++ b/runtime/autoload/netrw.vim
@@ -21,6 +21,7 @@
" 2024 Jul 30 by Vim Project: handle mark-copy to same target directory
(#12112)
" 2024 Aug 02 by Vim Project: honor g:netrw_alt{o,v} for :{S,H,V}explore
(#15417)
" 2024 Aug 15 by Vim Project: style changes, prevent E121 (#15501)
+" 2024 Aug 22 by Vim Project: fix mf-selection highlight (#15551)
" }}}
" Former Maintainer: Charles E Campbell
" GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim
@@ -6887,11 +6888,7 @@ fun! s:NetrwMarkFile(islocal,fname)
let ykeep = @@
let curbufnr= bufnr("%")
- if a:fname =~ '^ '
- let leader= '\<'
- else
- let leader= ''
- endif
+ 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1shD2U-001InK-MA%40256bit.org.