lib/textbringer/commands/misc.rb in textbringer-0.2.8 vs lib/textbringer/commands/misc.rb in textbringer-0.2.9
- old
+ new
@@ -328,7 +328,15 @@
define_command(:grep) do
|cmd = read_from_minibuffer("Grep: ",
initial_value: CONFIG[:grep_command] + " ")|
shell_execute(cmd, buffer_name: "*grep*", mode: BacktraceMode)
end
+
+ define_command(:jit_pause) do
+ RubyVM::MJIT.pause
+ end
+
+ define_command(:jit_resume) do
+ RubyVM::MJIT.resume
+ end
end
end