Commit: runtime(manpager): Strip OSC 8 hyperlink sequences in manpager plugin

1 view
Skip to first unread message

Christian Brabandt

unread,
Mar 22, 2026, 11:32:11 AM (23 hours ago) Mar 22
to vim...@googlegroups.com
runtime(manpager): Strip OSC 8 hyperlink sequences in manpager plugin Commit: https://github.com/vim/vim/commit/9774651ecfab18ee0cd54b4e8a3c85497347fb73 Author: Yasuhiro Matsumoto <matt...@gmail.com> Date: Sun Mar 22 15:28:28 2026 +0000 runtime(manpager): Strip OSC 8 hyperlink sequences in manpager plugin fixes: https://github.com/vim/vim/issues/19726 closes: https://github.com/vim/vim/issues/19787 Signed-off-by: Yasuhiro Matsumoto <matt...@gmail.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/plugin/manpager.vim b/runtime/plugin/manpager.vim index 6ed603025..e0d269743 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 <ennona...@gmail.com> " 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/ \[%(%(\d;)?\d{1,2})?[mK]//e' .. (&gdefault ? '' : 'g') + " Remove OSC 8 hyperlink sequences: ]8;;... \ or ]8;;... + exe 'silent! keepj keepp %s/ \]8;[^ ]*%( \)//e' .. (&gdefault ? '' : 'g') " Remove empty lines above the header call cursor(1, 1) let n = search(".*(.*)", "c")
Reply all
Reply to author
Forward
0 new messages