ext_cmdline: Add function block support

This commit is contained in:
Dongdong Zhou
2017-06-26 11:19:40 +01:00
committed by Björn Linse
parent 866dadaf75
commit 461ae69824
3 changed files with 52 additions and 2 deletions

View File

@@ -19816,6 +19816,10 @@ void ex_function(exarg_T *eap)
goto errret_2;
}
if (ui_is_external(kUICmdline)) {
ui_call_cmdline_function_show();
}
// find extra arguments "range", "dict", "abort" and "closure"
for (;; ) {
p = skipwhite(p);
@@ -19868,7 +19872,9 @@ void ex_function(exarg_T *eap)
if (!eap->skip && did_emsg)
goto erret;
msg_putchar('\n'); /* don't overwrite the function name */
if (!ui_is_external(kUICmdline)) {
msg_putchar('\n'); /* don't overwrite the function name */
}
cmdline_row = msg_row;
}
@@ -20194,6 +20200,9 @@ ret_free:
xfree(name);
did_emsg |= saved_did_emsg;
need_wait_return |= saved_wait_return;
if (ui_is_external(kUICmdline)) {
ui_call_cmdline_function_hide();
}
}
/// Get a function name, translating "<SID>" and "<SNR>".