refactored group renaming
All checks were successful
Version Check / check-version (pull_request) Successful in 2s

This commit is contained in:
2026-03-18 22:49:55 +01:00
parent ee85be4e6b
commit 029b4f9da8
2 changed files with 31 additions and 20 deletions

View File

@@ -242,8 +242,10 @@ impl App {
/// Transitions the application into Insert Mode with a specific variant.
pub fn enter_insert(&mut self, variant: InsertVariant) {
if let Some(var) = self.vars.get(self.selected)
&& !var.is_group {
if let Some(var) = self.vars.get(self.selected) {
if var.is_group {
self.enter_insert_key();
} else {
if !matches!(variant, InsertVariant::Substitute) {
self.sync_input_with_selected();
}
@@ -262,6 +264,7 @@ impl App {
}
}
}
}
}
/// Commits the current input and transitions the application into Normal Mode.