From 5b5313b5de63be81e093bb7bcfff22e145535737 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Thu, 24 May 2012 18:37:51 -0700 Subject: [PATCH] Support windows paths in editor too --- lib/pry/helpers/command_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pry/helpers/command_helpers.rb b/lib/pry/helpers/command_helpers.rb index 87fd35b8..2921e77c 100644 --- a/lib/pry/helpers/command_helpers.rb +++ b/lib/pry/helpers/command_helpers.rb @@ -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`.