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:
parent
0d91a6ce77
commit
5b5313b5de
1 changed files with 1 additions and 1 deletions
|
@ -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`.
|
||||
|
|
Loading…
Reference in a new issue