aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--go.mod2
-rw-r--r--go.sum4
-rw-r--r--widgets/terminal.go3
3 files changed, 5 insertions, 4 deletions
diff --git a/go.mod b/go.mod
index 28273a95..129ecc97 100644
--- a/go.mod
+++ b/go.mod
@@ -3,7 +3,7 @@ module git.sr.ht/~rjarry/aerc
go 1.18
require (
- git.sr.ht/~rockorager/tcell-term v0.7.0
+ git.sr.ht/~rockorager/tcell-term v0.7.1
git.sr.ht/~sircmpwn/getopt v1.0.0
github.com/ProtonMail/go-crypto v0.0.0-20230417170513-8ee5748c52b5
github.com/arran4/golang-ical v0.0.0-20230318005454-19abf92700cc
diff --git a/go.sum b/go.sum
index 284f13af..3c269730 100644
--- a/go.sum
+++ b/go.sum
@@ -1,5 +1,5 @@
-git.sr.ht/~rockorager/tcell-term v0.7.0 h1:XVbiLRIN9a3d6yzjh+Cl5yudwMiNkNDwCTRhlww8iWY=
-git.sr.ht/~rockorager/tcell-term v0.7.0/go.mod h1:Snxh5CrziiA2CjyLOZ6tGAg5vMPlE+REMWT3rtKuyyQ=
+git.sr.ht/~rockorager/tcell-term v0.7.1 h1:VMQu1DtqXjcY9WR1x1OSG0C45gK8nDaQVGGH3z+xcvg=
+git.sr.ht/~rockorager/tcell-term v0.7.1/go.mod h1:Snxh5CrziiA2CjyLOZ6tGAg5vMPlE+REMWT3rtKuyyQ=
git.sr.ht/~sircmpwn/getopt v1.0.0 h1:/pRHjO6/OCbBF4puqD98n6xtPEgE//oq5U8NXjP7ROc=
git.sr.ht/~sircmpwn/getopt v1.0.0/go.mod h1:wMEGFFFNuPos7vHmWXfszqImLppbc0wEhh6JBfJIUgw=
github.com/ProtonMail/crypto v0.0.0-20200420072808-71bec3603bf3 h1:JW27/kGLQzeM1Fxg5YQhdkTEAU7HIAHMgSag35zVTnY=
diff --git a/widgets/terminal.go b/widgets/terminal.go
index 8a75fb78..9c2123cc 100644
--- a/widgets/terminal.go
+++ b/widgets/terminal.go
@@ -46,7 +46,7 @@ func (term *Terminal) closeErr(err error) {
if term.closed {
return
}
- if term.vterm != nil {
+ if term.vterm != nil && err == nil {
// Stop receiving events
term.vterm.Detach()
term.vterm.Close()
@@ -58,6 +58,7 @@ func (term *Terminal) closeErr(err error) {
term.ctx.HideCursor()
}
term.closed = true
+ ui.QueueRedraw()
}
func (term *Terminal) Destroy() {