comparison src/structs.h @ 2150:4269a0673478 v7.2.432

updated for version 7.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)
author Bram Moolenaar <bram@zimbu.org>
date Fri, 14 May 2010 22:24:40 +0200
parents 8d1db3e3ac5f
children e12b9d992389
comparison
equal deleted inserted replaced
2149:4c8008ab94d8 2150:4269a0673478
230 */ 230 */
231 struct wininfo_S 231 struct wininfo_S
232 { 232 {
233 wininfo_T *wi_next; /* next entry or NULL for last entry */ 233 wininfo_T *wi_next; /* next entry or NULL for last entry */
234 wininfo_T *wi_prev; /* previous entry or NULL for first entry */ 234 wininfo_T *wi_prev; /* previous entry or NULL for first entry */
235 win_T *wi_win; /* pointer to window that did set wi_lnum */ 235 win_T *wi_win; /* pointer to window that did set wi_fpos */
236 pos_T wi_fpos; /* last cursor position in the file */ 236 pos_T wi_fpos; /* last cursor position in the file */
237 int wi_optset; /* TRUE when wi_opt has useful values */ 237 int wi_optset; /* TRUE when wi_opt has useful values */
238 winopt_T wi_opt; /* local window options */ 238 winopt_T wi_opt; /* local window options */
239 #ifdef FEAT_FOLDING 239 #ifdef FEAT_FOLDING
240 int wi_fold_manual; /* copy of w_fold_manual */ 240 int wi_fold_manual; /* copy of w_fold_manual */
2205 2205
2206 struct VimMenu 2206 struct VimMenu
2207 { 2207 {
2208 int modes; /* Which modes is this menu visible for? */ 2208 int modes; /* Which modes is this menu visible for? */
2209 int enabled; /* for which modes the menu is enabled */ 2209 int enabled; /* for which modes the menu is enabled */
2210 char_u *name; /* Name of menu */ 2210 char_u *name; /* Name of menu, possibly translated */
2211 char_u *dname; /* Displayed Name (without '&') */ 2211 char_u *dname; /* Displayed Name ("name" without '&') */
2212 #ifdef FEAT_MULTI_LANG
2213 char_u *en_name; /* "name" untranslated, NULL when "name"
2214 * was not translated */
2215 char_u *en_dname; /* "dname" untranslated, NULL when "dname"
2216 * was not translated */
2217 #endif
2212 int mnemonic; /* mnemonic key (after '&') */ 2218 int mnemonic; /* mnemonic key (after '&') */
2213 char_u *actext; /* accelerator text (after TAB) */ 2219 char_u *actext; /* accelerator text (after TAB) */
2214 int priority; /* Menu order priority */ 2220 int priority; /* Menu order priority */
2215 #ifdef FEAT_GUI 2221 #ifdef FEAT_GUI
2216 void (*cb) __ARGS((vimmenu_T *)); /* Call-back routine */ 2222 void (*cb) __ARGS((vimmenu_T *)); /* Call-back routine */