mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
refactor(ex_cd): add an early return to fix clint warning
The popupmenu.c change is unrelated.
This commit is contained in:
@@ -5544,9 +5544,9 @@ void ex_cd(exarg_T *eap)
|
|||||||
// for non-UNIX ":cd" means: print current directory unless 'cdhome' is set
|
// for non-UNIX ":cd" means: print current directory unless 'cdhome' is set
|
||||||
if (*new_dir == NUL && !p_cdh) {
|
if (*new_dir == NUL && !p_cdh) {
|
||||||
ex_pwd(NULL);
|
ex_pwd(NULL);
|
||||||
} else
|
return;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
{
|
|
||||||
CdScope scope = kCdScopeGlobal;
|
CdScope scope = kCdScopeGlobal;
|
||||||
switch (eap->cmdidx) {
|
switch (eap->cmdidx) {
|
||||||
case CMD_tcd:
|
case CMD_tcd:
|
||||||
@@ -5567,7 +5567,6 @@ void ex_cd(exarg_T *eap)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/// ":pwd".
|
/// ":pwd".
|
||||||
static void ex_pwd(exarg_T *eap)
|
static void ex_pwd(exarg_T *eap)
|
||||||
|
@@ -1042,14 +1042,14 @@ void pum_show_popupmenu(vimmenu_T *menu)
|
|||||||
pum_scrollbar = 0;
|
pum_scrollbar = 0;
|
||||||
pum_height = pum_size;
|
pum_height = pum_size;
|
||||||
pum_position_at_mouse(20);
|
pum_position_at_mouse(20);
|
||||||
|
|
||||||
|
pum_selected = -1;
|
||||||
|
pum_first = 0;
|
||||||
if (!p_mousemev) {
|
if (!p_mousemev) {
|
||||||
// Pretend 'mousemoveevent' is set.
|
// Pretend 'mousemoveevent' is set.
|
||||||
ui_call_option_set(STATIC_CSTR_AS_STRING("mousemoveevent"), BOOLEAN_OBJ(true));
|
ui_call_option_set(STATIC_CSTR_AS_STRING("mousemoveevent"), BOOLEAN_OBJ(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
pum_selected = -1;
|
|
||||||
pum_first = 0;
|
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
pum_is_visible = true;
|
pum_is_visible = true;
|
||||||
pum_is_drawn = true;
|
pum_is_drawn = true;
|
||||||
|
Reference in New Issue
Block a user