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*'