mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 7.4.725
Problem: ":call setreg('"', [])" reports an internal error. Solution: Make the register empty. (Yasuhiro Matsumoto)
This commit is contained in:
@@ -6642,6 +6642,14 @@ str_to_reg(y_ptr, yank_type, str, len, blocklen, str_list)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Without any lines make the register empty. */
|
||||||
|
if (y_ptr->y_size + newlines == 0)
|
||||||
|
{
|
||||||
|
vim_free(y_ptr->y_array);
|
||||||
|
y_ptr->y_array = NULL;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Allocate an array to hold the pointers to the new register lines.
|
* Allocate an array to hold the pointers to the new register lines.
|
||||||
* If the register was not empty, move the existing lines to the new array.
|
* If the register was not empty, move the existing lines to the new array.
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
725,
|
||||||
/**/
|
/**/
|
||||||
724,
|
724,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user