Remove use of non-standard -l option in doc.kak

This will break BSD unfortunately, we should try to find a
portable fix for that.

Fixes #967
This commit is contained in:
Maxime Coste 2016-12-14 01:02:53 +00:00
parent 066d6d1120
commit 8e351e8285

View File

@ -8,8 +8,7 @@ def -hidden -params 1..2 _doc-open %{
export MAN_KEEP_FORMATTING=y export MAN_KEEP_FORMATTING=y
export MANWIDTH=${kak_window_width} export MANWIDTH=${kak_window_width}
# The BSD implementation requires an `-l` flag to detect a filetype as argument if man "$1" > "${manout}"; then
if man -l "$1" > "${manout}"; then
sed -i 's/.\x8//g' "${manout}" sed -i 's/.\x8//g' "${manout}"
printf %s\\n " printf %s\\n "