aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-12-12 22:15:06 +0100
committerChristian Clason <ch.clason+github@icloud.com>2024-12-13 09:38:19 +0100
commit3e3a9843004683db142bd17f9bf36a5dab7b7ac8 (patch)
tree4503331a2ba2c6e69b7e9b8299b9f611286f8fe9
parent2e73ba102ac65f08fdbb6d2b87e90390abdca10c (diff)
downloadrneovim-3e3a9843004683db142bd17f9bf36a5dab7b7ac8.tar.gz
rneovim-3e3a9843004683db142bd17f9bf36a5dab7b7ac8.tar.bz2
rneovim-3e3a9843004683db142bd17f9bf36a5dab7b7ac8.zip
vim-patch:5c42c77: runtime(netrw): do not pollute search history with symlinks
fixes: vim/vim#16206 https://github.com/vim/vim/commit/5c42c7731536418c53273932d7ef76b80b001f38 Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r--runtime/autoload/netrw.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim
index cbe0b29620..116e105b57 100644
--- a/runtime/autoload/netrw.vim
+++ b/runtime/autoload/netrw.vim
@@ -40,6 +40,7 @@
" 2024 Nov 23 by Vim Project: fix powershell escaping issues (#16094)
" 2024 Dec 04 by Vim Project: do not detach for gvim (#16168)
" 2024 Dec 08 by Vim Project: check the first arg of netrw_browsex_viewer for being executable (#16185)
+" 2024 Dec 12 by Vim Project: do not pollute the search history (#16206)
" }}}
" Former Maintainer: Charles E Campbell
" GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim
@@ -11759,7 +11760,8 @@ endfun
" s:ShowLink: used to modify thin and tree listings to show links {{{2
fun! s:ShowLink()
if exists("b:netrw_curdir")
- norm! $?\a
+ keepp :norm! $?\a
+ "call histdel("/",-1)
if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST && exists("w:netrw_treetop")
let basedir = s:NetrwTreePath(w:netrw_treetop)
else