Skip to content

Commit

Permalink
Remove square bracket uses in editor tab rendering (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
panarch authored Jan 12, 2025
1 parent fe227f8 commit 9acb4d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tui/src/views/body/notebook/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn draw(frame: &mut Frame, area: Rect, context: &mut Context) {
context.notebook.editor_height = area.height - 2;

let (title, breadcrumb) = if let Some(tab_index) = context.notebook.tab_index {
let mut title = vec!["[".into()];
let mut title = vec![" ".into()];
for (i, tab) in context.notebook.tabs.iter().enumerate() {
let name = tab.note.name.clone();
let name = if i == tab_index {
Expand All @@ -33,7 +33,6 @@ pub fn draw(frame: &mut Frame, area: Rect, context: &mut Context) {
}
title.push(name);
}
title.push("]".into());

let title = Line::from(title);
let breadcrumb = Span::raw(format!(
Expand Down

0 comments on commit 9acb4d2

Please sign in to comment.