1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Use the mixin that is implemented later instead.

Signed-off-by: Jordon Bedwell <jordon@envygeeks.com>
This commit is contained in:
Jordon Bedwell 2011-12-26 19:21:30 -06:00
parent dbaa4b0aef
commit d2d501f386

View file

@ -187,7 +187,7 @@ class Pry
# Return the syntax for a given editor for starting the editor
# and moving to a particular line within that file
def start_line_syntax_for_editor(file_name, line_number)
if Helpers::BaseHelpers.windows?
if windows?
file_name = file_name.gsub(/\//, '\\')
end
@ -204,7 +204,7 @@ class Pry
when /^jedit/
"#{file_name} +line:#{line_number}"
else
if Helpers::BaseHelpers.windows?
if windows?
"#{file_name}"
else
"+#{line_number} #{file_name}"