diff --git a/Cargo.lock b/Cargo.lock index 0937e13ab..7eb9e34ef 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3137,7 +3137,7 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "steel-core" version = "0.6.0" -source = "git+https://github.com/mattwparas/steel.git#54c703795bf0e960674dce5091ed377fa4e3e1cb" +source = "git+https://github.com/mattwparas/steel.git#e308663bcb50275288261a37659c9562909246e0" dependencies = [ "abi_stable", "anyhow", @@ -3189,7 +3189,7 @@ dependencies = [ [[package]] name = "steel-derive" version = "0.5.0" -source = "git+https://github.com/mattwparas/steel.git#54c703795bf0e960674dce5091ed377fa4e3e1cb" +source = "git+https://github.com/mattwparas/steel.git#e308663bcb50275288261a37659c9562909246e0" dependencies = [ "proc-macro2", "quote", @@ -3199,7 +3199,7 @@ dependencies = [ [[package]] name = "steel-doc" version = "0.6.0" -source = "git+https://github.com/mattwparas/steel.git#54c703795bf0e960674dce5091ed377fa4e3e1cb" +source = "git+https://github.com/mattwparas/steel.git#e308663bcb50275288261a37659c9562909246e0" dependencies = [ "steel-core", ] @@ -3207,7 +3207,7 @@ dependencies = [ [[package]] name = "steel-gen" version = "0.2.0" -source = "git+https://github.com/mattwparas/steel.git#54c703795bf0e960674dce5091ed377fa4e3e1cb" +source = "git+https://github.com/mattwparas/steel.git#e308663bcb50275288261a37659c9562909246e0" dependencies = [ "codegen", "serde", @@ -3216,7 +3216,7 @@ dependencies = [ [[package]] name = "steel-parser" version = "0.6.0" -source = "git+https://github.com/mattwparas/steel.git#54c703795bf0e960674dce5091ed377fa4e3e1cb" +source = "git+https://github.com/mattwparas/steel.git#e308663bcb50275288261a37659c9562909246e0" dependencies = [ "compact_str", "fxhash", diff --git a/helix-term/src/commands/engine/steel.rs b/helix-term/src/commands/engine/steel.rs index f802443e0..2dea8d15f 100644 --- a/helix-term/src/commands/engine/steel.rs +++ b/helix-term/src/commands/engine/steel.rs @@ -77,7 +77,7 @@ fn setup() -> Engine { let engine = steel::steel_vm::engine::Engine::new(); // Any function after this point can be used for looking at "new" functions - GLOBAL_OFFSET.set(engine.readable_globals(0).len()).unwrap(); + // GLOBAL_OFFSET.set(engine.readable_globals(0).len()).unwrap(); let controller = engine.get_thread_state_controller(); let running = Arc::new(AtomicBool::new(false)); @@ -3504,6 +3504,8 @@ fn configure_engine_impl(mut engine: Engine) -> Engine { // Create directory since we can't do that in the current state engine.register_fn("hx.create-directory", create_directory); + GLOBAL_OFFSET.set(engine.readable_globals(0).len()).unwrap(); + engine } diff --git a/steel b/steel index 54c703795..e308663bc 160000 --- a/steel +++ b/steel @@ -1 +1 @@ -Subproject commit 54c703795bf0e960674dce5091ed377fa4e3e1cb +Subproject commit e308663bcb50275288261a37659c9562909246e0