From: Yasuhiro Matsumoto Date: Sun, 22 Mar 2026 15:28:28 +0000 (+0000) Subject: runtime(manpager): Strip OSC 8 hyperlink sequences in manpager plugin X-Git-Tag: v9.2.0220~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9774651ecfab18ee0cd54b4e8a3c85497347fb73;p=thirdparty%2Fvim.git runtime(manpager): Strip OSC 8 hyperlink sequences in manpager plugin fixes: #19726 closes: #19787 Signed-off-by: Yasuhiro Matsumoto Signed-off-by: Christian Brabandt --- diff --git a/runtime/plugin/manpager.vim b/runtime/plugin/manpager.vim index 6ed6030254..e0d2697439 100644 --- a/runtime/plugin/manpager.vim +++ b/runtime/plugin/manpager.vim @@ -1,6 +1,7 @@ " Vim plugin for using Vim as manpager. " Maintainer: Enno Nagel " Last Change: 2024 Jul 03 +" 2026 Mar 22 by Vim Project: strip OSC 9 sequences (#19787) if exists('g:loaded_manpager_plugin') finish @@ -32,6 +33,9 @@ function s:ManPager() " Remove ansi sequences exe 'silent! keepj keepp %s/\v\e\[%(%(\d;)?\d{1,2})?[mK]//e' .. (&gdefault ? '' : 'g') + " Remove OSC 8 hyperlink sequences: \e]8;;...\e\ or \e]8;;...\a + exe 'silent! keepj keepp %s/\v\e\]8;[^\a\e]*%(\a|\e\\)//e' .. (&gdefault ? '' : 'g') + " Remove empty lines above the header call cursor(1, 1) let n = search(".*(.*)", "c")