lib/standup_md/cli/helpers.rb in standup_md-0.3.3 vs lib/standup_md/cli/helpers.rb in standup_md-0.3.4
- old
+ new
@@ -135,10 +135,12 @@
##
# The "previous" entries.
#
# @return [Array]
def set_previous_entry(file)
- return [] unless StandupMD.config.cli.auto_fill_previous
+ unless StandupMD.config.cli.auto_fill_previous
+ return Standup.config.entry.previous_entry
+ end
return prev_entry(prev_file.load.entries) if file.new? && prev_file
prev_entry(file.entries)
end
##