diff options
author | Daniel Hahler <git@thequod.de> | 2019-09-21 23:18:56 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-21 14:18:56 -0700 |
commit | ad0f97f4123b3b84e0f0883afce305d20aec954a (patch) | |
tree | 41ec47d29c7dcf5760322dfb5363391b03534742 /src/nvim/eval.c | |
parent | fd82ce4a3a9c9833e07db079debf6c9b94a2cfd3 (diff) | |
download | rneovim-ad0f97f4123b3b84e0f0883afce305d20aec954a.tar.gz rneovim-ad0f97f4123b3b84e0f0883afce305d20aec954a.tar.bz2 rneovim-ad0f97f4123b3b84e0f0883afce305d20aec954a.zip |
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)
https://github.com/vim/vim/commit/181d4f58cc421f2e6d3b16333d4cb70d35ad1342
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index be761afa1f..2ddcd389fe 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -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); |