Define gui_macvim_update

In order to update channels surely in ":sleep"
This commit is contained in:
ichizok
2018-05-30 19:28:12 +09:00
parent fdd2847265
commit 85ba5a4ebf
3 changed files with 17 additions and 1 deletions
+8 -1
View File
@@ -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)
+2
View File
@@ -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);
+7
View File
@@ -707,7 +707,14 @@ ui_breakcheck_force(int force)
#ifdef FEAT_GUI
if (gui.in_use)
{
# ifdef FEAT_GUI_MACVIM
if (force)
gui_macvim_update();
else
# endif
gui_mch_update();
}
else
#endif
mch_breakcheck(force);