neovim

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

commit 68c957751975f3443982cb228eadcbac5cd40ef5
parent 8537133f82be57cf67d562e95d4367490c3b6db7
Author: Jaehwang Jung <tomtomjhj@gmail.com>
Date:   Sat, 13 Sep 2025 01:54:00 +0900

vim-patch:b3eaae2: 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: vim/vim#17672

https://github.com/vim/vim/commit/b3eaae21b9f681d23466e7caa0b9d7e32cb4b206

Co-authored-by: uma-chan <127664533+i9wa4@users.noreply.github.com>
Co-authored-by: Luca Saccarola <96259932+saccarosium@users.noreply.github.com>

Diffstat:
Mruntime/pack/dist/opt/netrw/autoload/netrw.vim | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/runtime/pack/dist/opt/netrw/autoload/netrw.vim b/runtime/pack/dist/opt/netrw/autoload/netrw.vim @@ -7606,6 +7606,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()