AutoYADM commit: 2025-05-21 03:18:27
This commit is contained in:
parent
7c524d8e20
commit
2f7643d380
3 changed files with 15 additions and 9 deletions
|
@ -28,6 +28,7 @@ hook global WinSetOption filetype=man %{
|
|||
}
|
||||
|
||||
define-command -hidden -params ..3 man-impl %{
|
||||
set-option buffer readonly false
|
||||
evaluate-commands %sh{
|
||||
buffer_name="$1"
|
||||
if [ -z "${buffer_name}" ]; then
|
||||
|
@ -60,8 +61,10 @@ define-command -hidden -params ..3 man-impl %{
|
|||
nop %%sh{ rm "%s"; rm "%s" }
|
||||
' "$(cat "$manerr")" "${colout}" "${manerr}"
|
||||
fi
|
||||
echo "trigger-user-hook manpageloaded"
|
||||
}
|
||||
trigger-user-hook manpageloaded
|
||||
set-option buffer readonly true
|
||||
|
||||
}
|
||||
|
||||
# MAN COMMAND
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue