ext_cmdline: added indent

This commit is contained in:
Dongdong Zhou
2017-06-26 15:27:49 +01:00
committed by Björn Linse
parent 461ae69824
commit fb389a6b4b
3 changed files with 21 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ 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 level)
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;

View File

@@ -2726,7 +2726,11 @@ void ui_ext_cmdline_show(void)
ADD(text, STRING_OBJ(cstr_to_string("Normal")));
ADD(text, STRING_OBJ(cstr_to_string((char *)(ccline.cmdbuff))));
ADD(content, ARRAY_OBJ(text));
ui_call_cmdline_show(content, ccline.cmdpos, cchar_to_string((char)ccline.cmdfirstc), cstr_to_string((char *)(ccline.cmdprompt)), ccline.level);
ui_call_cmdline_show(content, ccline.cmdpos,
cchar_to_string((char)ccline.cmdfirstc),
cstr_to_string((char *)(ccline.cmdprompt)),
ccline.cmdindent,
ccline.level);
}
/*