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/menu.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/menu.c')
-rw-r--r-- | src/nvim/menu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/menu.c b/src/nvim/menu.c index d965de6019..434b92450c 100644 --- a/src/nvim/menu.c +++ b/src/nvim/menu.c @@ -30,6 +30,7 @@ #include "nvim/keymap.h" #include "nvim/garray.h" #include "nvim/strings.h" +#include "nvim/ui.h" #define MENUDEPTH 10 /* maximum depth of menus */ @@ -249,6 +250,7 @@ ex_menu ( xfree(map_buf); } + ui_update_menu(); theend: ; |