lib/timetrap/cli.rb in timetrap-1.8.10 vs lib/timetrap/cli.rb in timetrap-1.8.11

- old
+ new

@@ -257,9 +257,10 @@ warn "Checked into sheet #{Timer.current_sheet.inspect}." end def resume last_entry = Timer.entries(Timer.current_sheet).last + last_entry ||= Timer.entries("_#{Timer.current_sheet}").last warn "No entry yet on this sheet yet. Started a new entry." unless last_entry note = (last_entry ? last_entry.note : nil) warn "Resuming #{note.inspect} from entry ##{last_entry.id}" if note self.unused_args = note || unused_args