Skip to content

Commit

Permalink
Support windows paths in editor too
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradIrwin committed May 25, 2012
1 parent 0d91a6c commit 5b5313b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pry/helpers/command_helpers.rb
Expand Up @@ -155,7 +155,7 @@ def start_line_syntax_for_editor(file_name, line_number)
# we can just use the program's name and ignore any absolute paths.
#
def editor_name
Pry.config.editor.split("/").last.split(" ").first
Pry.config.editor.split(%r{[\\/]}).last.split(" ").first
end

# Remove any common leading whitespace from every line in `text`.
Expand Down

0 comments on commit 5b5313b

Please sign in to comment.