From 6cbc9e0a344a5fda3cfd7f9fbd2c3af541f13fd4 Mon Sep 17 00:00:00 2001 From: Leira Hua Date: Mon, 19 Dec 2016 23:54:37 -0800 Subject: [PATCH] Fixes #995 Documentation rendering problem BSD sed doesn't accept ascii number with '\x', used printf to generate \x8 as @lenormf suggested. --- rc/core/doc.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/core/doc.kak b/rc/core/doc.kak index 4a4b717e..ff4d58a1 100644 --- a/rc/core/doc.kak +++ b/rc/core/doc.kak @@ -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*'