lib/vedeu/runtime/main_loop.rb in vedeu-0.6.22 vs lib/vedeu/runtime/main_loop.rb in vedeu-0.6.23
- old
+ new
@@ -20,18 +20,12 @@
def start!
@started = true
@loop = true
while @loop
- yield
+ Vedeu.trigger(:_refresh_cursor_, Vedeu.focus)
- Vedeu.trigger(:_hide_cursor_)
-
- Vedeu.log(type: :info,
- message: 'MainLoop rendering terminal buffer.')
- Vedeu::Terminal::Buffer.render
-
- Vedeu.trigger(:_show_cursor_)
+ yield
safe_exit_point!
end
rescue Vedeu::Error::Interrupt
Vedeu.log(type: :info,