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

no longer stripping arg_string in CommandProcessor, this is so amend-line can allow proper indentation

This commit is contained in:
John Mair 2011-06-17 01:44:26 +12:00
parent 8133fd8914
commit 7e70420916

View file

@ -89,7 +89,10 @@ class Pry
# no command was matched, so return to caller
command, captures, pos = command_matched(val, target)
return if !command
arg_string = val[pos..-1].strip
arg_string = val[pos..-1]
# remove the one leading space if it exists
arg_string.slice!(0) if arg_string.start_with?(" ")
args = arg_string ? Shellwords.shellwords(arg_string) : []