rc doc: Remove window hooks automatically assigned

When using the `man` filetype to make use of the text highlighters
of the `man.kak` script, the documentation pages inherit from the
window resizing hooks that won't work on `doc` buffers.

Fixes #1591
This commit is contained in:
Frank LENORMAND 2017-09-29 22:12:09 +03:00
parent 0da5cabbfe
commit f26854694e

View File

@ -16,6 +16,7 @@ def -hidden -params 1..2 doc-open %{
exec |cat<space>${manout}<ret>gg
nop %sh{rm ${manout}}
set buffer filetype man
remove-hooks window man-hooks
"
if [ $# -gt 1 ]; then