mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 7.4.1032
Problem: message from assert_false() does not look nice. Solution: Handle missing sourcing_name. Use right number of spaces. (Watiko) Don't use line number if it's zero.
This commit is contained in:
@@ -9151,9 +9151,18 @@ prepare_assert_error(gap)
|
||||
char buf[NUMBUFLEN];
|
||||
|
||||
ga_init2(gap, 1, 100);
|
||||
if (sourcing_name != NULL)
|
||||
{
|
||||
ga_concat(gap, sourcing_name);
|
||||
if (sourcing_lnum > 0)
|
||||
ga_concat(gap, (char_u *)" ");
|
||||
}
|
||||
if (sourcing_lnum > 0)
|
||||
{
|
||||
sprintf(buf, "line %ld", (long)sourcing_lnum);
|
||||
ga_concat(gap, (char_u *)buf);
|
||||
}
|
||||
if (sourcing_name != NULL || sourcing_lnum > 0)
|
||||
ga_concat(gap, (char_u *)": ");
|
||||
}
|
||||
|
||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1032,
|
||||
/**/
|
||||
1031,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user