about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/command_tag/processor.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/lib/command_tag/processor.rb b/app/lib/command_tag/processor.rb
index 67d16d237..2c33b5f83 100644
--- a/app/lib/command_tag/processor.rb
+++ b/app/lib/command_tag/processor.rb
@@ -44,16 +44,15 @@ class CommandTag::Processor
   end
 
   def process!
+    reset_status_caches
+    all_handlers!(:startup)
+
     unless @text.match?(PARSEABLE_RE)
       process_inline_images!
       @status.save!
       return
     end
 
-    reset_status_caches
-
-    all_handlers!(:startup)
-
     @text = parse_statements_from!(@text, @statements)
 
     execute_statements(:at_start)