mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
runtime(netrw): 'equalalways' is not always respected
fixes: #18358 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
11
runtime/pack/dist/opt/netrw/autoload/netrw.vim
vendored
11
runtime/pack/dist/opt/netrw/autoload/netrw.vim
vendored
@@ -8,6 +8,7 @@
|
|||||||
" 2025 Sep 05 by Vim Project ensure netrw#fs#Dirname() returns trailing slash #18199
|
" 2025 Sep 05 by Vim Project ensure netrw#fs#Dirname() returns trailing slash #18199
|
||||||
" 2025 Sep 11 by Vim Project only keep cursor position in tree mode #18275
|
" 2025 Sep 11 by Vim Project only keep cursor position in tree mode #18275
|
||||||
" 2025 Sep 17 by Vim Project tighten the regex to handle remote compressed archives #18318
|
" 2025 Sep 17 by Vim Project tighten the regex to handle remote compressed archives #18318
|
||||||
|
" 2025 Sep 18 by Vim Project equalalwayse not always respected #18358
|
||||||
" Copyright: Copyright (C) 2016 Charles E. Campbell {{{1
|
" Copyright: Copyright (C) 2016 Charles E. Campbell {{{1
|
||||||
" Permission is hereby granted to use and distribute this code,
|
" Permission is hereby granted to use and distribute this code,
|
||||||
" with or without modifications, provided that this copyright
|
" with or without modifications, provided that this copyright
|
||||||
@@ -3838,6 +3839,8 @@ function s:NetrwBrowseChgDir(islocal, newdir, cursor, ...)
|
|||||||
exe "keepalt ".(g:netrw_alto? "bel " : "abo ").winsz."wincmd s"
|
exe "keepalt ".(g:netrw_alto? "bel " : "abo ").winsz."wincmd s"
|
||||||
if !&ea
|
if !&ea
|
||||||
keepalt wincmd _
|
keepalt wincmd _
|
||||||
|
else
|
||||||
|
exe "keepalt wincmd ="
|
||||||
endif
|
endif
|
||||||
call s:SetRexDir(a:islocal,curdir)
|
call s:SetRexDir(a:islocal,curdir)
|
||||||
|
|
||||||
@@ -3847,6 +3850,8 @@ function s:NetrwBrowseChgDir(islocal, newdir, cursor, ...)
|
|||||||
exe "keepalt ".(g:netrw_alto? "top " : "bot ")."vert ".winsz."wincmd s"
|
exe "keepalt ".(g:netrw_alto? "top " : "bot ")."vert ".winsz."wincmd s"
|
||||||
if !&ea
|
if !&ea
|
||||||
keepalt wincmd |
|
keepalt wincmd |
|
||||||
|
else
|
||||||
|
exe "keepalt wincmd ="
|
||||||
endif
|
endif
|
||||||
call s:SetRexDir(a:islocal,curdir)
|
call s:SetRexDir(a:islocal,curdir)
|
||||||
|
|
||||||
@@ -7016,6 +7021,9 @@ function s:NetrwSplit(mode)
|
|||||||
NetrwKeepj call s:RestoreWinVars()
|
NetrwKeepj call s:RestoreWinVars()
|
||||||
NetrwKeepj call netrw#LocalBrowseCheck(s:NetrwBrowseChgDir(1,s:NetrwGetWord(),1))
|
NetrwKeepj call netrw#LocalBrowseCheck(s:NetrwBrowseChgDir(1,s:NetrwGetWord(),1))
|
||||||
unlet s:didsplit
|
unlet s:didsplit
|
||||||
|
if &ea
|
||||||
|
exe "keepalt wincmd ="
|
||||||
|
endif
|
||||||
|
|
||||||
elseif a:mode == 4
|
elseif a:mode == 4
|
||||||
" local and t
|
" local and t
|
||||||
@@ -7053,6 +7061,9 @@ function s:NetrwSplit(mode)
|
|||||||
NetrwKeepj call s:RestoreWinVars()
|
NetrwKeepj call s:RestoreWinVars()
|
||||||
NetrwKeepj call netrw#LocalBrowseCheck(s:NetrwBrowseChgDir(1,s:NetrwGetWord(),1))
|
NetrwKeepj call netrw#LocalBrowseCheck(s:NetrwBrowseChgDir(1,s:NetrwGetWord(),1))
|
||||||
unlet s:didsplit
|
unlet s:didsplit
|
||||||
|
if &ea
|
||||||
|
exe "keepalt wincmd ="
|
||||||
|
endif
|
||||||
|
|
||||||
else
|
else
|
||||||
call netrw#msg#Notify('ERROR', '(NetrwSplit) unsupported mode='.a:mode)
|
call netrw#msg#Notify('ERROR', '(NetrwSplit) unsupported mode='.a:mode)
|
||||||
|
Reference in New Issue
Block a user