ext_cmdline: lint

This commit is contained in:
Dongdong Zhou 2017-06-27 02:20:27 +01:00 committed by Björn Linse
parent fb389a6b4b
commit 5ad591ef2d
3 changed files with 14 additions and 12 deletions

View File

@ -66,18 +66,19 @@ void popupmenu_hide(void)
void popupmenu_select(Integer selected)
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
void tabline_update(Tabpage current, Array tabs)
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
void cmdline_show(Array content, Integer pos, String firstc, String prompt, Integer indent, Integer level)
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
void cmdline_show(Array content, Integer pos, String firstc, String prompt,
Integer indent, Integer level)
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
void cmdline_pos(Integer pos, Integer level)
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
void cmdline_char(String c, Integer shift, Integer level)
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
void cmdline_hide(Integer level)
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
void cmdline_function_show(void)
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
void cmdline_function_hide(void)
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY;
#endif // NVIM_API_UI_EVENTS_IN_H

View File

@ -19873,7 +19873,7 @@ void ex_function(exarg_T *eap)
goto erret;
if (!ui_is_external(kUICmdline)) {
msg_putchar('\n'); /* don't overwrite the function name */
msg_putchar('\n'); // don't overwrite the function name
}
cmdline_row = msg_row;
}

View File

@ -2744,11 +2744,12 @@ void putcmdline(int c, int shift)
return;
}
if (!ui_is_external(kUICmdline)) {
msg_no_more = TRUE;
msg_no_more = true;
msg_putchar(c);
if (shift)
if (shift) {
draw_cmdline(ccline.cmdpos, ccline.cmdlen - ccline.cmdpos);
msg_no_more = FALSE;
}
msg_no_more = false;
} else {
ui_call_cmdline_char(cchar_to_string((char)(c)), shift, ccline.level);
}