modified indicator in tab bar

This commit is contained in:
alice pellerin
2026-03-19 04:04:55 -05:00
parent 5908895ef9
commit 8666fb738e
2 changed files with 7 additions and 3 deletions
+7 -1
View File
@@ -32,6 +32,12 @@ fn tab_for(buffer: &Buffer, is_active: bool) -> Span<'static> {
Color::ui_grey()
};
Span::from(format!(" {} ", buffer.file_name))
let modified_indicator = if buffer.has_unsaved_changes() {
"[+]"
} else {
""
};
Span::from(format!(" {}{modified_indicator} ", buffer.file_name))
.bg(background)
}