class Byebug::ListCommand
def display_list(b, e, lines, current)
otherwise we return the previous line @state.previous_line.
current line number. If we can show from B to E then we return B,
Show file lines in LINES from line B to line E where CURRENT is the
#
def display_list(b, e, lines, current) width = e.to_s.size b.upto(e) do |n| if n > 0 && lines[n-1] if n == current print "=> %#{width}d: %s\n", n, lines[n-1].chomp else print " %#{width}d: %s\n", n, lines[n-1].chomp end end end return e == lines.size ? @state.previous_line : b end