Avoid extra function call when waking up for cursor blink rendering

This commit is contained in:
Kovid Goyal
2017-09-09 14:02:08 +05:30
parent 3274327fe7
commit 0aecae288f

View File

@@ -60,10 +60,6 @@ class Timers(_Timers):
return _Timers.remove_event(self, timer)
def wakeup_for_cursor_blink_render():
pass
class DumpCommands: # {{{
def __init__(self, args):
@@ -408,7 +404,7 @@ class Boss:
n = t // d
draw_cursor = n % 2 == 0
self.ui_timers.add_if_before(
((n + 1) * d / 1000) - now, wakeup_for_cursor_blink_render)
((n + 1) * d / 1000) - now, None)
if draw_cursor:
with self.cursor_program:
active.char_grid.render_cursor(