mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
first attempt at editor support for jruby
This commit is contained in:
parent
f8624252d2
commit
5b48284a9f
1 changed files with 7 additions and 1 deletions
|
@ -357,7 +357,13 @@ class Pry
|
|||
editor_invocation = "#{Pry.config.editor} #{start_line_syntax_for_editor(file, line)}"
|
||||
end
|
||||
|
||||
run ".#{editor_invocation}"
|
||||
if jruby?
|
||||
require 'spoon'
|
||||
pid = Spoon.spawnp(*editor_invocation.split)
|
||||
Process.waitpid(pid)
|
||||
else
|
||||
run ".#{editor_invocation}"
|
||||
end
|
||||
end
|
||||
|
||||
def start_line_syntax_for_editor(file_name, line_number)
|
||||
|
|
Loading…
Reference in a new issue