From f350fb902946f00d31246bef5fbec1e23e79c2be Mon Sep 17 00:00:00 2001 From: tjp Date: Thu, 4 Jan 2024 12:48:28 -0700 Subject: clear modal after printing it once now after a modal (eg "m l") and will re-print the page you are on --- actions.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actions.go') diff --git a/actions.go b/actions.go index 4a51ee6..08838a8 100644 --- a/actions.go +++ b/actions.go @@ -430,6 +430,8 @@ func print(state *BrowserState) error { return nil } + defer func() { state.Modal = nil }() + if state.Body == nil && state.Modal == nil { return ErrMustBeOnAPage } -- cgit v1.2.3