mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
runtime(netrw): Fix w:netrw_bannercnt
ref error with netrw_fastbrowse=2
(#13659)
* NetRW: Fix `w:netrw_bannercnt` ref error with `netrw_fastbrowse=2` * NetRW: Fix wrong `w:netrw_bannercnt` setting closes: #13640 Signed-off-by: yasuda <yasuda@kyoto-sr.co.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@ -10380,7 +10380,7 @@ fun! s:NetrwRemoteListing()
|
||||
let w:netrw_bannercnt= s:bannercnt
|
||||
endif
|
||||
if !exists("w:netrw_bannercnt") && exists("b:bannercnt")
|
||||
let w:netrw_bannercnt= s:bannercnt
|
||||
let w:netrw_bannercnt= b:bannercnt
|
||||
endif
|
||||
|
||||
call s:RemotePathAnalysis(b:netrw_curdir)
|
||||
@ -11274,6 +11274,10 @@ endfun
|
||||
fun! s:NetrwLocalRename(path) range
|
||||
" call Dfunc("NetrwLocalRename(path<".a:path.">)")
|
||||
|
||||
if !exists("w:netrw_bannercnt")
|
||||
let w:netrw_bannercnt= b:netrw_bannercnt
|
||||
endif
|
||||
|
||||
" preparation for removing multiple files/directories
|
||||
let ykeep = @@
|
||||
let ctr = a:firstline
|
||||
@ -11375,6 +11379,10 @@ fun! s:NetrwLocalRm(path) range
|
||||
" call Dfunc("s:NetrwLocalRm(path<".a:path.">)")
|
||||
" call Decho("firstline=".a:firstline." lastline=".a:lastline,'~'.expand("<slnum>"))
|
||||
|
||||
if !exists("w:netrw_bannercnt")
|
||||
let w:netrw_bannercnt= b:netrw_bannercnt
|
||||
endif
|
||||
|
||||
" preparation for removing multiple files/directories
|
||||
let ykeep = @@
|
||||
let ret = 0
|
||||
|
Reference in New Issue
Block a user