about summary refs log tree commit diff stats
path: root/044space_surround.cc
diff options
context:
space:
mode:
Diffstat (limited to '044space_surround.cc')
-rw-r--r--044space_surround.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/044space_surround.cc b/044space_surround.cc
index 21a68fdd..b2c04213 100644
--- a/044space_surround.cc
+++ b/044space_surround.cc
@@ -27,7 +27,7 @@ recipe main [
 
 :(replace{} "index_t space_base(const reagent& x)")
 index_t space_base(const reagent& x) {
-  return space_base(x, space_index(x), Current_routine->calls.top().default_space);
+  return space_base(x, space_index(x), Current_routine->calls.front().default_space);
 }
 
 index_t space_base(const reagent& x, index_t space_index, index_t base) {