From 8e351e8285f642c7822e44155bb757ae67bc6911 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 14 Dec 2016 01:02:53 +0000 Subject: [PATCH] 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 --- rc/core/doc.kak | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rc/core/doc.kak b/rc/core/doc.kak index ace77583..4a4b717e 100644 --- a/rc/core/doc.kak +++ b/rc/core/doc.kak @@ -8,8 +8,7 @@ def -hidden -params 1..2 _doc-open %{ export MAN_KEEP_FORMATTING=y export MANWIDTH=${kak_window_width} - # The BSD implementation requires an `-l` flag to detect a filetype as argument - if man -l "$1" > "${manout}"; then + if man "$1" > "${manout}"; then sed -i 's/.\x8//g' "${manout}" printf %s\\n "