mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
vim-patch:7.4.879
Problem: Can't see line numbers in nested function calls.
Solution: Add line number to the file name. (Alberto Fanjul)
1d6328ca00
This commit is contained in:
@@ -20873,14 +20873,18 @@ call_user_func (
|
|||||||
save_sourcing_name = sourcing_name;
|
save_sourcing_name = sourcing_name;
|
||||||
save_sourcing_lnum = sourcing_lnum;
|
save_sourcing_lnum = sourcing_lnum;
|
||||||
sourcing_lnum = 1;
|
sourcing_lnum = 1;
|
||||||
sourcing_name = xmalloc((save_sourcing_name == NULL ? 0 : STRLEN(save_sourcing_name))
|
// need space for function name + ("function " + 3) or "[number]"
|
||||||
+ STRLEN(fp->uf_name) + 13);
|
size_t len = (save_sourcing_name == NULL ? 0 : STRLEN(save_sourcing_name))
|
||||||
|
+ STRLEN(fp->uf_name) + 20;
|
||||||
|
sourcing_name = xmalloc(len);
|
||||||
{
|
{
|
||||||
if (save_sourcing_name != NULL
|
if (save_sourcing_name != NULL
|
||||||
&& STRNCMP(save_sourcing_name, "function ", 9) == 0)
|
&& STRNCMP(save_sourcing_name, "function ", 9) == 0) {
|
||||||
sprintf((char *)sourcing_name, "%s..", save_sourcing_name);
|
vim_snprintf((char *)sourcing_name, len, "%s[%zu]..",
|
||||||
else
|
save_sourcing_name, save_sourcing_lnum);
|
||||||
|
} else {
|
||||||
STRCPY(sourcing_name, "function ");
|
STRCPY(sourcing_name, "function ");
|
||||||
|
}
|
||||||
cat_func_name(sourcing_name + STRLEN(sourcing_name), fp);
|
cat_func_name(sourcing_name + STRLEN(sourcing_name), fp);
|
||||||
|
|
||||||
if (p_verbose >= 12) {
|
if (p_verbose >= 12) {
|
||||||
|
@@ -409,7 +409,7 @@ static int included_patches[] = {
|
|||||||
// 882,
|
// 882,
|
||||||
// 881,
|
// 881,
|
||||||
// 880 NA
|
// 880 NA
|
||||||
// 879,
|
879,
|
||||||
// 878,
|
// 878,
|
||||||
// 877,
|
// 877,
|
||||||
// 876 NA
|
// 876 NA
|
||||||
|
Reference in New Issue
Block a user