From: uma-chan <127664533+i9wa4@users.noreply.github.com> Date: Mon, 7 Jul 2025 20:04:11 +0000 (+0200) Subject: runtime(netrw): restore blank line cleanup after file listing X-Git-Tag: v9.1.1526~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b3eaae21b9f681d23466e7caa0b9d7e32cb4b206;p=thirdparty%2Fvim.git runtime(netrw): restore blank line cleanup after file listing Problem: v182 refactoring removed blank line cleanup (g/^$/d) from s:LocalListing(), causing empty lines between directories and files. Solution: Add the missing cleanup after append() in s:PerformListing() (uma-chan). closes: #17672 Co-authored-by: Luca Saccarola <96259932+saccarosium@users.noreply.github.com> Signed-off-by: uma-chan <127664533+i9wa4@users.noreply.github.com> Signed-off-by: Christian Brabandt --- diff --git a/runtime/pack/dist/opt/netrw/autoload/netrw.vim b/runtime/pack/dist/opt/netrw/autoload/netrw.vim index e19d4c4dd5..c412858556 100644 --- a/runtime/pack/dist/opt/netrw/autoload/netrw.vim +++ b/runtime/pack/dist/opt/netrw/autoload/netrw.vim @@ -7602,6 +7602,8 @@ function s:PerformListing(islocal) if a:islocal let filelist = s:NetrwLocalListingList(b:netrw_curdir, 1) call append(w:netrw_bannercnt - 1, filelist) + silent! NetrwKeepj g/^$/d + silent! NetrwKeepj %s/\r$//e execute printf("setl ts=%d", g:netrw_maxfilenamelen + 1) else " remote NetrwKeepj let badresult= s:NetrwRemoteListing()