• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revisioned222e26490512df71eefc6d626c776b7e72d584 (tree)
Zeit2019-09-19 05:15:03
AutorBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Log Message

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)

Ändern Zusammenfassung

Diff

diff -r 40a1b1bc457e -r ed222e264905 src/profiler.c
--- a/src/profiler.c Wed Sep 18 21:45:03 2019 +0200
+++ b/src/profiler.c Wed Sep 18 22:15:03 2019 +0200
@@ -696,7 +696,7 @@
696696 get_scriptname(fp->uf_script_ctx.sc_sid));
697697 if (p != NULL)
698698 {
699- fprintf(fd, " Defined: %s line %ld\n",
699+ fprintf(fd, " Defined: %s:%ld\n",
700700 p, (long)fp->uf_script_ctx.sc_lnum);
701701 vim_free(p);
702702 }
diff -r 40a1b1bc457e -r ed222e264905 src/testdir/test_profile.vim
--- a/src/testdir/test_profile.vim Wed Sep 18 21:45:03 2019 +0200
+++ b/src/testdir/test_profile.vim Wed Sep 18 22:15:03 2019 +0200
@@ -55,7 +55,7 @@
5555 call assert_equal(30, len(lines))
5656
5757 call assert_equal('FUNCTION Foo1()', lines[0])
58- call assert_match('Defined:.*Xprofile_func.vim', lines[1])
58+ call assert_match('Defined:.*Xprofile_func.vim:3', lines[1])
5959 call assert_equal('Called 2 times', lines[2])
6060 call assert_match('^Total time:\s\+\d\+\.\d\+$', lines[3])
6161 call assert_match('^ Self time:\s\+\d\+\.\d\+$', lines[4])
diff -r 40a1b1bc457e -r ed222e264905 src/version.c
--- a/src/version.c Wed Sep 18 21:45:03 2019 +0200
+++ b/src/version.c Wed Sep 18 22:15:03 2019 +0200
@@ -758,6 +758,8 @@
758758 static int included_patches[] =
759759 { /* Add new patch number below this line */
760760 /**/
761+ 2055,
762+/**/
761763 2054,
762764 /**/
763765 2053,
Show on old repository browser