mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 14:28:18 +00:00
vim-patch:8.1.2055: profile: adjust line format #11058
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 vim/vim#4951)
181d4f58cc
This commit is contained in:

committed by
Justin M. Keyes

parent
fd82ce4a3a
commit
ad0f97f412
@@ -22270,7 +22270,7 @@ void func_dump_profile(FILE *fd)
|
||||
.channel_id = 0,
|
||||
};
|
||||
char_u *p = get_scriptname(last_set, &should_free);
|
||||
fprintf(fd, " Defined: %s line %" PRIdLINENR "\n",
|
||||
fprintf(fd, " Defined: %s:%" PRIdLINENR "\n",
|
||||
p, fp->uf_script_ctx.sc_lnum);
|
||||
if (should_free) {
|
||||
xfree(p);
|
||||
|
Reference in New Issue
Block a user