clear modal after printing it once

now after a modal (eg "m l") and <enter> will re-print the page you are on
This commit is contained in:
tjp 2024-01-04 12:48:28 -07:00
parent ceaaaaf695
commit f350fb9029
1 changed files with 2 additions and 0 deletions

View File

@ -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
}