diff options
Diffstat (limited to 'src/nvim/cmdexpand.c')
-rw-r--r-- | src/nvim/cmdexpand.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/cmdexpand.c b/src/nvim/cmdexpand.c index 523145af1b..31b385c466 100644 --- a/src/nvim/cmdexpand.c +++ b/src/nvim/cmdexpand.c @@ -841,7 +841,7 @@ static char *find_longest_match(expand_T *xp, int options) char *ExpandOne(expand_T *xp, char *str, char *orig, int options, int mode) { char *ss = NULL; - int orig_saved = false; + bool orig_saved = false; // first handle the case of using an old match if (mode == WILD_NEXT || mode == WILD_PREV @@ -3311,7 +3311,7 @@ static int wildmenu_process_key_menunames(CmdlineInfo *cclp, int key, expand_T * } else if (key == K_UP) { // Hitting <Up>: Remove one submenu name in front of the // cursor - int found = false; + bool found = false; int j = (int)(xp->xp_pattern - cclp->cmdbuff); int i = 0; @@ -3367,7 +3367,7 @@ static int wildmenu_process_key_filenames(CmdlineInfo *cclp, int key, expand_T * KeyTyped = true; // in case the key was mapped } else if (strncmp(xp->xp_pattern, upseg + 1, 3) == 0 && key == K_DOWN) { // If in a direct ancestor, strip off one ../ to go down - int found = false; + bool found = false; int j = cclp->cmdpos; int i = (int)(xp->xp_pattern - cclp->cmdbuff); @@ -3388,7 +3388,7 @@ static int wildmenu_process_key_filenames(CmdlineInfo *cclp, int key, expand_T * } } else if (key == K_UP) { // go up a directory - int found = false; + bool found = false; int j = cclp->cmdpos - 1; int i = (int)(xp->xp_pattern - cclp->cmdbuff); |