diff options
author | Tulir Asokan <tulir@maunium.net> | 2020-02-19 23:48:34 +0200 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2020-02-19 23:48:34 +0200 |
commit | 55f58f2875d68a47af4c36fac140fb06ecc37bfd (patch) | |
tree | c2fb069bc45e3d35562d8e2819a6d26ef94b288b | |
parent | 78f7a7aadc1ab2519198ab5d62f4d370e470dbf2 (diff) |
Fix some issues when logging out
-rw-r--r-- | matrix/matrix.go | 1 | ||||
-rw-r--r-- | ui/ui.go | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/matrix/matrix.go b/matrix/matrix.go index c89f884..43141b0 100644 --- a/matrix/matrix.go +++ b/matrix/matrix.go @@ -261,6 +261,7 @@ func (c *Container) Stop() { if err != nil { debug.Print("Error closing history manager:", err) } + c.history = nil } } @@ -105,6 +105,10 @@ func (ui *GomuksUI) SetView(name View) { if ok { focusable.Focus() } + if ui.app.Screen() != nil { + ui.app.Screen().Clear() + ui.Render() + } } func (ui *GomuksUI) MainView() ifc.MainView { |