runtime(manpager): Strip OSC 8 hyperlink sequences in manpager plugin Commit: https://github.com/vim/vim/commit/9774651ecfab18ee0cd54b4e8a3c85497347fb73 Author: Yasuhiro Matsumoto <[email protected]> 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 <[email protected]> Signed-off-by: Christian Brabandt <[email protected]> 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 <[email protected]> " 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")
-- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1w4Kkg-000c7i-9E%40256bit.org.
