Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mattn
Created March 17, 2016 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/c24b703e8ff23691f967 to your computer and use it in GitHub Desktop.
Save mattn/c24b703e8ff23691f967 to your computer and use it in GitHub Desktop.
diff --git a/src/eval.c b/src/eval.c
index 6280323..b9eb792 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -23894,6 +23894,12 @@ trans_function_name(
*pp = end;
}
else
+ if (lv.ll_tv->v_type == VAR_PARTIAL && lv.ll_tv->vval.v_string != NULL)
+ {
+ name = vim_strsave(lv.ll_tv->vval.v_partial->pt_name);
+ *pp = end;
+ }
+ else
{
if (!skip && !(flags & TFN_QUIET) && (fdp == NULL
|| lv.ll_dict == NULL || fdp->fd_newkey == NULL))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment