summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/main.rs b/src/main.rs
index f392572..1ee9e88 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -511,20 +511,9 @@ fn make_string_readtable() -> ReadTable {
 
 fn make_register_string_readtable() -> ReadTable {
   let mut result = ReadTable::new(move |c, state| {
-    match state.reg_command.as_str() {
-      "l" | "s" => {
-        state.wip_str.push(c);
-
-        Ok(())
-      }
-
-      _ => {
-        state.mode = Mode::CommandChar;
+    state.wip_str.push(c);
 
-        Err(err_msg(format!(
-            "Unsupported register command {}", state.reg_command)))
-      }
-    }
+    Ok(())
   });
 
   result.set_action(']', move |_, state| {