Close unbalanced quotes when tab completing

master
Spencer McIntyre 2019-04-24 11:01:23 -04:00
parent 92e945ff46
commit 2a0e3690db
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ module DispatcherShell
word.downcase.start_with?(str.downcase) || word =~ /^#{str}/i
# Prepend the rest of the command (or it all gets replaced!)
}.map { |word|
word = quote.nil? ? word.gsub(' ', '\ ') : quote.dup << word
word = quote.nil? ? word.gsub(' ', '\ ') : quote.dup << word << quote.dup
tab_words.dup.push(word).join(' ')
}
end