aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2024-11-28 15:54:07 +0300
committerKirill Chibisov <contact@kchibisov.com>2024-11-28 18:41:23 +0300
commit1be20fbe4a556598f1b7335f56f5350853652ce5 (patch)
tree6603f97790cbe3820cea27584ce5d3fa54e1c0fd
parent6e9a19fd8317e9d0d6a33aa535a1f2ea56844626 (diff)
downloadalacritty-1be20fbe4a556598f1b7335f56f5350853652ce5.tar.gz
alacritty-1be20fbe4a556598f1b7335f56f5350853652ce5.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 e78e82ba..15bdaa2b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,6 +23,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));
}