|
Karsten Hopp |
c09006 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
c09006 |
Subject: Patch 7.4.879
|
|
Karsten Hopp |
c09006 |
Fcc: outbox
|
|
Karsten Hopp |
c09006 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
c09006 |
Mime-Version: 1.0
|
|
Karsten Hopp |
c09006 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
c09006 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
c09006 |
------------
|
|
Karsten Hopp |
c09006 |
|
|
Karsten Hopp |
c09006 |
Patch 7.4.879
|
|
Karsten Hopp |
c09006 |
Problem: Can't see line numbers in nested function calls.
|
|
Karsten Hopp |
c09006 |
Solution: Add line number to the file name. (Alberto Fanjul)
|
|
Karsten Hopp |
c09006 |
Files: src/eval.c
|
|
Karsten Hopp |
c09006 |
|
|
Karsten Hopp |
c09006 |
|
|
Karsten Hopp |
c09006 |
*** ../vim-7.4.878/src/eval.c 2015-09-01 16:04:26.702472363 +0200
|
|
Karsten Hopp |
c09006 |
--- src/eval.c 2015-09-25 17:15:40.627893181 +0200
|
|
Karsten Hopp |
c09006 |
***************
|
|
Karsten Hopp |
c09006 |
*** 23817,23822 ****
|
|
Karsten Hopp |
c09006 |
--- 23817,23823 ----
|
|
Karsten Hopp |
c09006 |
int ai;
|
|
Karsten Hopp |
c09006 |
char_u numbuf[NUMBUFLEN];
|
|
Karsten Hopp |
c09006 |
char_u *name;
|
|
Karsten Hopp |
c09006 |
+ size_t len;
|
|
Karsten Hopp |
c09006 |
#ifdef FEAT_PROFILE
|
|
Karsten Hopp |
c09006 |
proftime_T wait_start;
|
|
Karsten Hopp |
c09006 |
proftime_T call_start;
|
|
Karsten Hopp |
c09006 |
***************
|
|
Karsten Hopp |
c09006 |
*** 23948,23960 ****
|
|
Karsten Hopp |
c09006 |
save_sourcing_name = sourcing_name;
|
|
Karsten Hopp |
c09006 |
save_sourcing_lnum = sourcing_lnum;
|
|
Karsten Hopp |
c09006 |
sourcing_lnum = 1;
|
|
Karsten Hopp |
c09006 |
! sourcing_name = alloc((unsigned)((save_sourcing_name == NULL ? 0
|
|
Karsten Hopp |
c09006 |
! : STRLEN(save_sourcing_name)) + STRLEN(fp->uf_name) + 13));
|
|
Karsten Hopp |
c09006 |
if (sourcing_name != NULL)
|
|
Karsten Hopp |
c09006 |
{
|
|
Karsten Hopp |
c09006 |
if (save_sourcing_name != NULL
|
|
Karsten Hopp |
c09006 |
&& STRNCMP(save_sourcing_name, "function ", 9) == 0)
|
|
Karsten Hopp |
c09006 |
! sprintf((char *)sourcing_name, "%s..", save_sourcing_name);
|
|
Karsten Hopp |
c09006 |
else
|
|
Karsten Hopp |
c09006 |
STRCPY(sourcing_name, "function ");
|
|
Karsten Hopp |
c09006 |
cat_func_name(sourcing_name + STRLEN(sourcing_name), fp);
|
|
Karsten Hopp |
c09006 |
--- 23949,23964 ----
|
|
Karsten Hopp |
c09006 |
save_sourcing_name = sourcing_name;
|
|
Karsten Hopp |
c09006 |
save_sourcing_lnum = sourcing_lnum;
|
|
Karsten Hopp |
c09006 |
sourcing_lnum = 1;
|
|
Karsten Hopp |
c09006 |
! /* need space for function name + ("function " + 3) or "[number]" */
|
|
Karsten Hopp |
c09006 |
! len = (save_sourcing_name == NULL ? 0 : STRLEN(save_sourcing_name))
|
|
Karsten Hopp |
c09006 |
! + STRLEN(fp->uf_name) + 20;
|
|
Karsten Hopp |
c09006 |
! sourcing_name = alloc((unsigned)len);
|
|
Karsten Hopp |
c09006 |
if (sourcing_name != NULL)
|
|
Karsten Hopp |
c09006 |
{
|
|
Karsten Hopp |
c09006 |
if (save_sourcing_name != NULL
|
|
Karsten Hopp |
c09006 |
&& STRNCMP(save_sourcing_name, "function ", 9) == 0)
|
|
Karsten Hopp |
c09006 |
! sprintf((char *)sourcing_name, "%s[%d]..",
|
|
Karsten Hopp |
c09006 |
! save_sourcing_name, (int)save_sourcing_lnum);
|
|
Karsten Hopp |
c09006 |
else
|
|
Karsten Hopp |
c09006 |
STRCPY(sourcing_name, "function ");
|
|
Karsten Hopp |
c09006 |
cat_func_name(sourcing_name + STRLEN(sourcing_name), fp);
|
|
Karsten Hopp |
c09006 |
*** ../vim-7.4.878/src/version.c 2015-09-25 16:59:43.001963805 +0200
|
|
Karsten Hopp |
c09006 |
--- src/version.c 2015-09-25 17:36:15.198910955 +0200
|
|
Karsten Hopp |
c09006 |
***************
|
|
Karsten Hopp |
c09006 |
*** 743,744 ****
|
|
Karsten Hopp |
c09006 |
--- 743,746 ----
|
|
Karsten Hopp |
c09006 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
c09006 |
+ /**/
|
|
Karsten Hopp |
c09006 |
+ 879,
|
|
Karsten Hopp |
c09006 |
/**/
|
|
Karsten Hopp |
c09006 |
|
|
Karsten Hopp |
c09006 |
--
|
|
Karsten Hopp |
c09006 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
c09006 |
7. You finally do take that vacation, but only after buying a cellular modem
|
|
Karsten Hopp |
c09006 |
and a laptop.
|
|
Karsten Hopp |
c09006 |
|
|
Karsten Hopp |
c09006 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
c09006 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
c09006 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
c09006 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|