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

Support windows paths in editor too

This commit is contained in:
Conrad Irwin 2012-05-24 18:37:51 -07:00
parent 0d91a6ce77
commit 5b5313b5de

View file

@ -155,7 +155,7 @@ class Pry
# 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`.