summaryrefslogtreecommitdiff
path: root/lib/pry/editor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pry/editor.rb')
-rw-r--r--lib/pry/editor.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pry/editor.rb b/lib/pry/editor.rb
index c9d92b1a..d6d72a0d 100644
--- a/lib/pry/editor.rb
+++ b/lib/pry/editor.rb
@@ -105,7 +105,7 @@ class Pry
'--nofork' if blocking
when /^jedit/
'-wait' if blocking
- when /^mate/, /^subl/, /^redcar/
+ when /^mate/, /^subl/, /^redcar/, /^code/
'-w' if blocking
end
end
@@ -121,6 +121,8 @@ class Pry
"+#{line_number} #{file_name}"
when /^mate/, /^geany/
"-l #{line_number} #{file_name}"
+ when /^code/
+ "-g #{file_name}:#{line_number}"
when /^subl/
"#{file_name}:#{line_number}"
when /^uedit32/