revert: debugging code removed
This commit is contained in:
@@ -925,7 +925,7 @@ pub fn error(f: &mut Frame, error: AppError, seconds: Option<u8>) {
|
||||
.block(block)
|
||||
.alignment(Alignment::Center);
|
||||
|
||||
let area = popup(lines, max_line_width, f.size(), BoxLocation::TopLeft);
|
||||
let area = popup(lines, max_line_width, f.size(), BoxLocation::MiddleCentre);
|
||||
|
||||
// let (paragraph, area) = gen_error(f, error, seconds);
|
||||
f.render_widget(Clear, area);
|
||||
@@ -2699,6 +2699,7 @@ mod tests {
|
||||
})
|
||||
.unwrap();
|
||||
|
||||
|
||||
let expected = vec![
|
||||
" ".to_owned(),
|
||||
" ╭───────────────── Error ──────────────────╮ ".to_owned(),
|
||||
|
||||
Reference in New Issue
Block a user