Fixes #995 Documentation rendering problem

BSD sed doesn't accept ascii number with '\x', used printf to generate
\x8 as @lenormf suggested.
This commit is contained in:
Leira Hua 2016-12-19 23:54:37 -08:00
parent 4b696836d1
commit 6cbc9e0a34

View File

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