aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-11-09 08:24:11 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-11-09 08:24:19 +0800
commit1d9eb84558934471eb2cc93f12ae10789086c25c (patch)
tree1f78e02127d0444acd0bd7e6277279facd4e3cde /runtime/autoload
parent32566dc1c3e85e9743f25b6e6a622f63646b5b4f (diff)
downloadrneovim-1d9eb84558934471eb2cc93f12ae10789086c25c.tar.gz
rneovim-1d9eb84558934471eb2cc93f12ae10789086c25c.tar.bz2
rneovim-1d9eb84558934471eb2cc93f12ae10789086c25c.zip
vim-patch:a063b22: runtime(netrw): prevent polluting the search history
https://github.com/vim/vim/commit/a063b22b3bbc1c7ad9d985b14d6e3c5b7c6e3eca Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/autoload')
-rw-r--r--runtime/autoload/netrw.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim
index d6caa50e7d..fe9d0d1bdd 100644
--- a/runtime/autoload/netrw.vim
+++ b/runtime/autoload/netrw.vim
@@ -32,6 +32,7 @@
" 2024 Oct 30 by Vim Project: fix x mapping on cygwin (#13687)
" 2024 Oct 31 by Vim Project: add netrw#Launch() and netrw#Open() (#15962)
" 2024 Oct 31 by Vim Project: fix E874 when browsing remote dir (#15964)
+" 2024 Nov 07 by Vim Project: use keeppatterns to prevent polluting the search history
" }}}
" Former Maintainer: Charles E Campbell
" GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim
@@ -9499,7 +9500,7 @@ fun! s:NetrwTreeListing(dirname)
endif
" update the dictionary for the current directory
- exe "sil! NetrwKeepj ".w:netrw_bannercnt.',$g@^\.\.\=/$@d _'
+ exe "sil! NetrwKeepj keepp ".w:netrw_bannercnt.',$g@^\.\.\=/$@d _'
let w:netrw_treedict[a:dirname]= getline(w:netrw_bannercnt,line("$"))
exe "sil! NetrwKeepj ".w:netrw_bannercnt.",$d _"
@@ -9916,7 +9917,7 @@ fun! s:PerformListing(islocal)
" resolve symbolic links if local and (thin or tree)
if a:islocal && (w:netrw_liststyle == s:THINLIST || (exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST))
" call Decho("--resolve symbolic links if local and thin|tree",'~'.expand("<slnum>"))
- sil! g/@$/call s:ShowLink()
+ sil! keepp g/@$/call s:ShowLink()
endif
if exists("w:netrw_bannercnt") && (line("$") >= w:netrw_bannercnt || !g:netrw_banner)