class Byebug::ListCommand
def execute
def execute Byebug.source_reload if Command.settings[:reload_source_on_change] lines = LineCache::getlines(@state.file, Command.settings[:reload_source_on_change]) if !lines errmsg "No sourcefile available for #{@state.file}\n" return @state.previous_line end b, e = set_line_range(Command.settings[:listsize], lines.size) return @state.previous_line if b < 0 print "[#{b}, #{e}] in #{@state.file}\n" @state.previous_line = display_list(b, e, lines, @state.line) end