fix(tabs): use tab index for tab name (#686)

This commit is contained in:
Paulo Coelho 2021-09-06 10:23:15 +01:00 committed by GitHub
parent 6ec51952d0
commit bdef573fb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,7 +268,7 @@ impl Tab {
let panes = BTreeMap::new();
let name = if name.is_empty() {
format!("Tab #{}", position + 1)
format!("Tab #{}", index + 1)
} else {
name
};