patch 8.1.2055: not easy to jump to function line from profile
Problem: Not easy to jump to function line from profile.
Solution: Use "file:99" instead of "file line 99" so that "gf" works.
(Daniel Hahler, closes #4951)
diff --git a/src/profiler.c b/src/profiler.c
index d7d010f..0bfce86 100644
--- a/src/profiler.c
+++ b/src/profiler.c
@@ -696,7 +696,7 @@
get_scriptname(fp->uf_script_ctx.sc_sid));
if (p != NULL)
{
- fprintf(fd, " Defined: %s line %ld\n",
+ fprintf(fd, " Defined: %s:%ld\n",
p, (long)fp->uf_script_ctx.sc_lnum);
vim_free(p);
}