Notify attached UIs whenever menus change

This adds a redraw notification "update_menu" which is sent whenever
Vim's menus are changed by the :menu command and friends.
This commit is contained in:
Robin Allen
2015-07-11 00:03:30 +01:00
parent 250aca4f89
commit d5b5063622
7 changed files with 78 additions and 0 deletions

View File

@@ -324,6 +324,11 @@ void ui_cursor_goto(int new_row, int new_col)
pending_cursor_update = true;
}
void ui_update_menu(void)
{
UI_CALL(update_menu);
}
int ui_current_row(void)
{
return row;