mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 19:18:34 +00:00
menu: support :emenu invoked by cmenu map.
This commit is contained in:
@@ -1262,6 +1262,9 @@ void ex_emenu(exarg_T *eap)
|
||||
if (((State & INSERT) || restart_edit) && !current_SID) {
|
||||
mode = (char_u *)"Insert";
|
||||
idx = MENU_INDEX_INSERT;
|
||||
} else if (State & CMDLINE) {
|
||||
mode = (char_u *)"Command";
|
||||
idx = MENU_INDEX_CMDLINE;
|
||||
} else if (get_real_state() & VISUAL) {
|
||||
/* Detect real visual mode -- if we are really in visual mode we
|
||||
* don't need to do any guesswork to figure out what the selection
|
||||
|
Reference in New Issue
Block a user