simple-prompt now uses prompt stack so it properly resets to prompt when returning from simple-prompt mode
This commit is contained in:
parent
7bc03759d9
commit
6eba6f7a03
|
@ -10,9 +10,9 @@ class Pry
|
||||||
command "simple-prompt", "Toggle the simple prompt." do
|
command "simple-prompt", "Toggle the simple prompt." do
|
||||||
case Pry.active_instance.prompt
|
case Pry.active_instance.prompt
|
||||||
when Pry::SIMPLE_PROMPT
|
when Pry::SIMPLE_PROMPT
|
||||||
Pry.active_instance.prompt = Pry::DEFAULT_PROMPT
|
Pry.active_instance.pop_prompt
|
||||||
else
|
else
|
||||||
Pry.active_instance.prompt = Pry::SIMPLE_PROMPT
|
Pry.active_instance.push_prompt Pry::SIMPLE_PROMPT
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue