neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 916237d9b531e946de4a6eb1d62ac0a484d585d6
parent 8c405d9b34b575c0d479d04dbfeb38f24c93287e
Author: Christian Clason <c.clason@uni-graz.at>
Date:   Thu, 22 Aug 2024 21:25:14 +0200

vim-patch:38cfa2b: runtime(netrw): Fix `mf`-selected entry highlighting

closes: vim/vim#15551

https://github.com/vim/vim/commit/38cfa2b6623c64e748be17739799da36ca2d76bf

Co-authored-by: yasuda <yasuda@kyoto-sr.co.jp>

Diffstat:
Mruntime/autoload/netrw.vim | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git 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 @@ -6824,11 +6825,7 @@ fun! s:NetrwMarkFile(islocal,fname) let ykeep = @@ let curbufnr= bufnr("%") - if a:fname =~ '^\a' - let leader= '\<' - else - let leader= '' - endif + let leader= '\(^\|\s\)\zs' if a:fname =~ '\a$' let trailer = '\>[@=|\/\*]\=\ze\%( \|\t\|$\)' else