summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-05-14 22:24:40 +0200
committerBram Moolenaar <Bram@vim.org>2010-05-14 22:24:40 +0200
commit70b11cdd56a062d19eefb483f549da1578aaea40 (patch)
treeebffb7dbce0baa98de979d418a5a4719cbb4d3d4 /src/structs.h
parent7871a500719a4b8cf212b788caec8abe33bf4c39 (diff)
downloadvim-git-70b11cdd56a062d19eefb483f549da1578aaea40.tar.gz
updated for version 7.2.432v7.2.432
Problem: When menus are translated they can only be found by the translated name. That makes ":emenu" difficult to use. Solution: Store the untranslated name and use it for completion and :emenu. (Edward L. Fox / Liang Peng / Bezetek James)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/structs.h b/src/structs.h
index 99afecfce..87bfbaef5 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -232,7 +232,7 @@ struct wininfo_S
{
wininfo_T *wi_next; /* next entry or NULL for last entry */
wininfo_T *wi_prev; /* previous entry or NULL for first entry */
- win_T *wi_win; /* pointer to window that did set wi_lnum */
+ win_T *wi_win; /* pointer to window that did set wi_fpos */
pos_T wi_fpos; /* last cursor position in the file */
int wi_optset; /* TRUE when wi_opt has useful values */
winopt_T wi_opt; /* local window options */
@@ -2207,8 +2207,14 @@ struct VimMenu
{
int modes; /* Which modes is this menu visible for? */
int enabled; /* for which modes the menu is enabled */
- char_u *name; /* Name of menu */
- char_u *dname; /* Displayed Name (without '&') */
+ char_u *name; /* Name of menu, possibly translated */
+ char_u *dname; /* Displayed Name ("name" without '&') */
+#ifdef FEAT_MULTI_LANG
+ char_u *en_name; /* "name" untranslated, NULL when "name"
+ * was not translated */
+ char_u *en_dname; /* "dname" untranslated, NULL when "dname"
+ * was not translated */
+#endif
int mnemonic; /* mnemonic key (after '&') */
char_u *actext; /* accelerator text (after TAB) */
int priority; /* Menu order priority */