diff options
| author | Leira Hua <leira@apple.com> | 2016-12-19 23:54:37 -0800 |
|---|---|---|
| committer | Leira Hua <leira@apple.com> | 2016-12-20 02:31:55 -0800 |
| commit | 6cbc9e0a344a5fda3cfd7f9fbd2c3af541f13fd4 (patch) | |
| tree | b8406962b1293d187952b0824d451fd879c2ac05 | |
| parent | 4b696836d1516587812b6ce51f41ed825b26e7e8 (diff) | |
Fixes #995 Documentation rendering problem
BSD sed doesn't accept ascii number with '\x', used printf to generate
\x8 as @lenormf suggested.
| -rw-r--r-- | rc/core/doc.kak | 2 |
1 files changed, 1 insertions, 1 deletions
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*' |
