diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-07-28 02:31:03 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-07-28 02:34:24 +0200 |
commit | 3b45f676c0f07aa2826f191f555ba0d5f53e6d7c (patch) | |
tree | 6d60711a6db394f3f2648a5d0049f3f7260e1a94 /src/nvim/menu.c | |
parent | dc685387a3d60e9ea3d09c80c74d4613b618cf14 (diff) | |
download | rneovim-3b45f676c0f07aa2826f191f555ba0d5f53e6d7c.tar.gz rneovim-3b45f676c0f07aa2826f191f555ba0d5f53e6d7c.tar.bz2 rneovim-3b45f676c0f07aa2826f191f555ba0d5f53e6d7c.zip |
menu_get(): doc
Diffstat (limited to 'src/nvim/menu.c')
-rw-r--r-- | src/nvim/menu.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/nvim/menu.c b/src/nvim/menu.c index 91b615be30..a498916e5e 100644 --- a/src/nvim/menu.c +++ b/src/nvim/menu.c @@ -91,11 +91,9 @@ ex_menu(exarg_T *eap) // Locate an optional "icon=filename" argument - // Kept just the command parsing from vim for compativility but no further - // processing is done + // TODO(nvim): Currently this is only parsed. Should expose it to UIs. if (STRNCMP(arg, "icon=", 5) == 0) { arg += 5; - // icon = arg; while (*arg != NUL && *arg != ' ') { if (*arg == '\\') STRMOVE(arg, arg + 1); @@ -1138,15 +1136,15 @@ static bool menu_namecmp(const char_u *const name, const char_u *const mname) } -/// converts a string into a combination of \ref MENU_MODES +/// Returns the \ref MENU_MODES specified by menu command `cmd`. /// (eg :menu! returns MENU_CMDLINE_MODE | MENU_INSERT_MODE) /// -/// @param[in] cmd a string like 'n' (normal) or 'a' (all) -/// @param[in] forceit Was there a "!" after the command? -/// @param[out] If "noremap" is not NULL, then the flag it points to is set -/// according to whether the command is a "nore" command. -/// @param[out] unmenu is not NULL, then the flag it points to is set according -/// to whether the command is an "unmenu" command. +/// @param[in] cmd string like "nmenu", "vmenu", etc. +/// @param[in] forceit bang (!) was given after the command +/// @param[out] noremap If not NULL, the flag it points to is set according +/// to whether the command is a "nore" command. +/// @param[out] unmenu If not NULL, the flag it points to is set according +/// to whether the command is an "unmenu" command. int get_menu_cmd_modes( const char_u * cmd, |