Skip to content

Commit 38cfa2b

Browse files
KSR-Yasudachrisbra
authored andcommitted
runtime(netrw): Fix mf-selected entry highlighting
closes: #15551 Signed-off-by: yasuda <yasuda@kyoto-sr.co.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 0e9fd77 commit 38cfa2b

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

runtime/autoload/netrw.vim

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
" 2024 Jul 30 by Vim Project: handle mark-copy to same target directory (#12112)
2222
" 2024 Aug 02 by Vim Project: honor g:netrw_alt{o,v} for :{S,H,V}explore (#15417)
2323
" 2024 Aug 15 by Vim Project: style changes, prevent E121 (#15501)
24+
" 2024 Aug 22 by Vim Project: fix mf-selection highlight (#15551)
2425
" }}}
2526
" Former Maintainer: Charles E Campbell
2627
" GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim
@@ -6887,11 +6888,7 @@ fun! s:NetrwMarkFile(islocal,fname)
68876888

68886889
let ykeep = @@
68896890
let curbufnr= bufnr("%")
6890-
if a:fname =~ '^\a'
6891-
let leader= '\<'
6892-
else
6893-
let leader= ''
6894-
endif
6891+
let leader= '\(^\|\s\)\zs'
68956892
if a:fname =~ '\a$'
68966893
let trailer = '\>[@=|\/\*]\=\ze\%( \|\t\|$\)'
68976894
else

0 commit comments

Comments
 (0)