lib/input_sequencer.rb in markdown_exec-2.2.0 vs lib/input_sequencer.rb in markdown_exec-2.3.0
- old
+ new
@@ -77,11 +77,12 @@
document_filename: @document_filename,
prior_block_was_link: false # true bypass_exit when last block was a link (from cli)
)
exit_when_bq_empty = !bq_is_empty? # true when running blocks from cli; unless "stay" is used
loop do
- break if run_yield(:parse_document, now_menu.document_filename, &block) == :break
+ break if run_yield(:parse_document, now_menu.document_filename,
+ &block) == :break
# self.imw_ins now_menu, 'now_menu'
break if exit_when_bq_empty && bq_is_empty? && !now_menu.prior_block_was_link
@@ -90,10 +91,11 @@
run_yield :display_menu, &block
choice = run_yield :user_choice, &block
raise 'Block not recognized.' if choice.nil?
- break if run_yield(:exit?, choice&.downcase, &block) # Exit loop and method to terminate the app
+ # Exit loop and method to terminate the app
+ break if run_yield(:exit?, choice&.downcase, &block)
next_state = run_yield :execute_block, choice, &block
# imw_ins next_state, 'next_state'
return :break if next_state == :break