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:
parent
8133fd8914
commit
7e70420916
1 changed files with 4 additions and 1 deletions
|
@ -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) : []
|
||||
|
||||
|
|
Loading…
Reference in a new issue