Mercurial > vim
comparison src/profiler.c @ 18120:ed222e264905 v8.1.2055
patch 8.1.2055: not easy to jump to function line from profile
Commit: https://github.com/vim/vim/commit/181d4f58cc421f2e6d3b16333d4cb70d35ad1342
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 18 22:04:56 2019 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 18 Sep 2019 22:15:03 +0200 |
parents | 48fd0712dad8 |
children | 847cc7932c42 |
comparison
equal
deleted
inserted
replaced
18119:40a1b1bc457e | 18120:ed222e264905 |
---|---|
694 { | 694 { |
695 p = home_replace_save(NULL, | 695 p = home_replace_save(NULL, |
696 get_scriptname(fp->uf_script_ctx.sc_sid)); | 696 get_scriptname(fp->uf_script_ctx.sc_sid)); |
697 if (p != NULL) | 697 if (p != NULL) |
698 { | 698 { |
699 fprintf(fd, " Defined: %s line %ld\n", | 699 fprintf(fd, " Defined: %s:%ld\n", |
700 p, (long)fp->uf_script_ctx.sc_lnum); | 700 p, (long)fp->uf_script_ctx.sc_lnum); |
701 vim_free(p); | 701 vim_free(p); |
702 } | 702 } |
703 } | 703 } |
704 if (fp->uf_tm_count == 1) | 704 if (fp->uf_tm_count == 1) |