ruby/command-t/match_window.rb
def padding_for_selected_match str
      len = str.length
      if len >= @window_width - MARKER_LENGTH
        ''
      else
        ' ' * (@window_width - MARKER_LENGTH - len)
      end
    end
# Prepare padding for match text (trailing spaces) so that selection
# highlighting extends all the way to the right edge of the window.
Prepare padding for match text (trailing spaces) so that selection
highlighting extends all the way to the right edge of the window.
Prepare padding for match text ( trailing spaces ) so that selection highlighting extends all the way to the right edge of the window .
def padding_for_selected_match str
      len = str.length
      if len >= @window_width - MARKER_LENGTH
        ''
      else
        ' ' * (@window_width - MARKER_LENGTH - len)
      end
    end
def padding_for_selected_match str len = str . length if len >= @window_width - MARKER_LENGTH '' else ' ' * ( @window_width - MARKER_LENGTH - len ) end end
Prepare padding for match text (trailing spaces) so that selection
highlighting extends all the way to the right edge of the window.
Prepare padding for match text ( trailing spaces ) so that selection highlighting extends all the way to the right edge of the window .
str