diff options
author | Robin Allen <r@foon.uk> | 2015-07-11 00:03:30 +0100 |
---|---|---|
committer | Robin Allen <r@foon.uk> | 2015-08-21 14:23:50 +0100 |
commit | d5b5063622ab9764a851fdf56c60d14ad0736583 (patch) | |
tree | 0300adec7e375a0c57eef58965602d0248b32e14 /src/nvim/ui.c | |
parent | 250aca4f8938ded5bf7dfbc56904b4e696d219b1 (diff) | |
download | rneovim-d5b5063622ab9764a851fdf56c60d14ad0736583.tar.gz rneovim-d5b5063622ab9764a851fdf56c60d14ad0736583.tar.bz2 rneovim-d5b5063622ab9764a851fdf56c60d14ad0736583.zip |
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.
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r-- | src/nvim/ui.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c index ad875367c9..e1bbcdb193 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -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; |