Honor strings ending in slash space

master
Spencer McIntyre 2019-04-22 15:08:11 -04:00
parent e962f94fab
commit 0e612045d3
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ module DispatcherShell
#
def tab_complete(str)
# Check trailing whitespace so we can tell 'x' from 'x '
str_match = str.match(/\s+$/)
str_match = str.match(/[^\\]([\\]{2})*\s+$/)
str_trail = (str_match.nil?) ? '' : str_match[0]
# Split the line up by whitespace into words