summaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-14 16:52:17 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-14 16:52:17 +0200
commitcc448b373d580856f92ff7a9e04daf65444b5cd1 (patch)
tree3cb827a7aa56a93acea0a1201d5754ebcca9b808 /src/menu.c
parentd43848c0dd0603248405bb93364866cd495f0547 (diff)
downloadvim-cc448b373d580856f92ff7a9e04daf65444b5cd1.zip
Support completion for ":find". (Nazri Ramliy)
Cleanup white space.
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/menu.c b/src/menu.c
index 3ab957cf6..10becdbda 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -1365,7 +1365,7 @@ get_menu_name(xp, idx)
str = menu->dname;
#ifdef FEAT_MULTI_LANG
if (menu->en_dname == NULL)
- should_advance = TRUE;
+ should_advance = TRUE;
}
#endif
else
@@ -1374,8 +1374,8 @@ get_menu_name(xp, idx)
#ifdef FEAT_MULTI_LANG
if (should_advance)
#endif
- /* Advance to next menu entry. */
- menu = menu->next;
+ /* Advance to next menu entry. */
+ menu = menu->next;
#ifdef FEAT_MULTI_LANG
should_advance = !should_advance;
@@ -1445,18 +1445,18 @@ get_menu_names(xp, idx)
}
else
#ifdef FEAT_MULTI_LANG
- {
- if (should_advance)
- str = menu->en_dname;
- else
- {
+ {
+ if (should_advance)
+ str = menu->en_dname;
+ else
+ {
#endif
- str = menu->dname;
+ str = menu->dname;
#ifdef FEAT_MULTI_LANG
- if (menu->en_dname == NULL)
- should_advance = TRUE;
- }
- }
+ if (menu->en_dname == NULL)
+ should_advance = TRUE;
+ }
+ }
#endif
}
else
@@ -1465,8 +1465,8 @@ get_menu_names(xp, idx)
#ifdef FEAT_MULTI_LANG
if (should_advance)
#endif
- /* Advance to next menu entry. */
- menu = menu->next;
+ /* Advance to next menu entry. */
+ menu = menu->next;
#ifdef FEAT_MULTI_LANG
should_advance = !should_advance;
@@ -1514,7 +1514,7 @@ menu_name_equal(name, menu)
if (menu->en_name != NULL
&& (menu_namecmp(name,menu->en_name)
|| menu_namecmp(name,menu->en_dname)))
- return TRUE;
+ return TRUE;
#endif
return menu_namecmp(name, menu->name) || menu_namecmp(name, menu->dname);
}