mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Define gui_macvim_update
In order to update channels surely in ":sleep"
This commit is contained in:
@@ -347,12 +347,19 @@ gui_mch_update(void)
|
||||
|
||||
CFAbsoluteTime nowTime = CFAbsoluteTimeGetCurrent();
|
||||
if (nowTime - lastTime > 1.0 / 30) {
|
||||
[[MMBackend sharedInstance] update];
|
||||
gui_macvim_update();
|
||||
lastTime = nowTime;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
gui_macvim_update(void)
|
||||
{
|
||||
[[MMBackend sharedInstance] update];
|
||||
}
|
||||
|
||||
|
||||
/* Flush any output to the screen */
|
||||
void
|
||||
gui_mch_flush(void)
|
||||
|
||||
@@ -17,6 +17,8 @@ gui_mch_open(void);
|
||||
void
|
||||
gui_mch_update(void);
|
||||
void
|
||||
gui_macvim_update(void);
|
||||
void
|
||||
gui_mch_flush(void);
|
||||
void
|
||||
gui_macvim_flush(void);
|
||||
|
||||
Reference in New Issue
Block a user