mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
ext_cmdline: Add function block support
This commit is contained in:

committed by
Björn Linse

parent
866dadaf75
commit
461ae69824
@@ -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>".
|
||||
|
Reference in New Issue
Block a user