Skip to content

Commit 5703f5d

Browse files
committed
fix: force clear the error dialog area
1 parent 2849606 commit 5703f5d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/widget/error.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use ratatui::{
55
layout::Rect,
66
prelude::*,
77
style::Style,
8-
widgets::{Block, Borders, Paragraph},
8+
widgets::{Block, Borders, Clear, Paragraph},
99
Frame,
1010
};
1111

@@ -84,6 +84,7 @@ impl Widget for Error {
8484
])
8585
.areas(area);
8686

87+
frame.render_widget(Clear, vert);
8788
frame.render_widget(pg, vert);
8889

8990
Ok(())

src/widget/tabs.rs

+2
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ impl Widget for TabbedView {
143143
Start::Right
144144
};
145145

146+
self.current = idx;
147+
146148
// TODO: this is *probably* a valid assumption, but it might need to be actually
147149
// checked.
148150
self.view.pop();

0 commit comments

Comments
 (0)