Merge remote-tracking branch 'lenormf/fix-doc-ansi-sequences'

This commit is contained in:
Maxime Coste 2017-02-13 20:27:38 +00:00
commit 14fa89e642

View File

@ -8,7 +8,7 @@ def -hidden -params 1..2 doc-open %{
export MANWIDTH=${kak_window_width}
if man "$1" > "${manout}"; then
sed -ie $(printf 's/.\x8//g') "${manout}"
sed -i "" -e $(printf 's/.\x8//g') -e 's,\x1B\[[0-9;]*[a-zA-Z],,g' "${manout}"
printf %s\\n "
edit! -scratch '*doc*'