lib/tty/reader/completer.rb
# Cancel completion suggestion and revert to the initial word
#
# @param [Line] line
#   the line to cancel word completion in
#
# @api public
Cancel completion suggestion and revert to the initial word
Cancel completion suggestion and revert to the initial word
def cancel(line)
        return if completions.empty?
        completed_word = @show_initial ? word : "#{completions.get}#{suffix}"
        line.remove(completed_word.length)
        line.insert(word)
      end
def cancel ( line ) return if completions . empty? completed_word = @show_initial ? word : "#{completions.get}#{suffix}" line . remove ( completed_word . length ) line . insert ( word ) end
Cancel completion suggestion and revert to the initial word
Cancel completion suggestion and revert to the initial word
line
line the line to cancel word completion in
line the line to cancel word completion in
api
None