diff options
| author | tjp <tjp@ctrl-c.club> | 2024-01-04 12:48:28 -0700 |
|---|---|---|
| committer | tjp <tjp@ctrl-c.club> | 2024-01-04 12:48:28 -0700 |
| commit | f350fb902946f00d31246bef5fbec1e23e79c2be (patch) | |
| tree | 91d5faba7efdbf09aa19d9719bbcc0850ee81e39 | |
| parent | ceaaaaf695afab718d98a92a4c3a3b7569261a25 (diff) | |
clear modal after printing it once
now after a modal (eg "m l") and <enter> will re-print the page you are on
| -rw-r--r-- | actions.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 } |
