Fixed a couple sneaky bugs with prompts.
This commit is contained in:
1 parent
c842a1e3db
commit
21cecd1e71
3 files changed
+55
-6
No files matched your search
@@ -259,9 +259,11 @@ func (a *application) observe_override(next screen.Snapshot) (applicationoverrid
|
||||
}
|
||||
frame := selected.adapter.Observe(next)
|
||||
freshShell := selected.shell.Observe(next)
|
||||
if !frame.Recognized {
|
||||
// A fresh shell prompt ends the override even if an adapter still recognizes
|
||||
// stale application content or its bridge has not reported closure yet.
|
||||
selected.exitPending = selected.exitPending || freshShell
|
||||
if !frame.Recognized || selected.exitPending {
|
||||
selected.recognized = false
|
||||
selected.exitPending = selected.exitPending || freshShell
|
||||
if a.overrideCurrent == selected {
|
||||
if !a.restore_override(func() {}) {
|
||||
return applicationoverrides.Frame{}, false
|
||||
|
||||
Reference in new issue
Block a user