aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2024-11-28 15:54:07 +0300
committerChristian Duerr <contact@christianduerr.com>2024-12-22 23:22:32 +0000
commit21657d2d4bf66932b26c9e222ba59ded5eb00e12 (patch)
tree90008e833f989e93fb573ce3c4cfbe3fd569c3a4
parent86b9b3f81dc7fbeeef37aa8e259dc4498e67f9fc (diff)
downloadalacritty-21657d2d4bf66932b26c9e222ba59ded5eb00e12.tar.gz
alacritty-21657d2d4bf66932b26c9e222ba59ded5eb00e12.zip
Fix recursion limit not working for toml migrate
-rw-r--r--CHANGELOG.md1
-rw-r--r--alacritty/src/migrate/mod.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dce7fa97..45a826ec 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,7 @@ Notable changes to the `alacritty_terminal` crate are documented in its
- Mouse/Vi cursor hint highlighting broken on the terminal cursor line
- Hint launcher opening arbitrary text, when terminal content changed while opening
- `SemanticRight`/`SemanticLeft` vi motions breaking with wide semantic escape characters
+- `alacritty migrate` crashing with recursive toml imports
## 0.14.0
diff --git a/alacritty/src/migrate/mod.rs b/alacritty/src/migrate/mod.rs
index 42b51d27..ffba25f0 100644
--- a/alacritty/src/migrate/mod.rs
+++ b/alacritty/src/migrate/mod.rs
@@ -151,7 +151,7 @@ fn migrate_imports(
// Migrate each import.
for import in imports.into_iter().filter_map(|item| item.as_str()) {
let normalized_path = config::normalize_import(path, import);
- let migration = migrate_config(options, &normalized_path, recursion_limit)?;
+ let migration = migrate_config(options, &normalized_path, recursion_limit - 1)?;
if options.dry_run {
println!("{}", migration.success_message(true));
}