mirror of
https://github.com/vim/vim.git
synced 2025-09-07 22:03:36 -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:
parent
7bc25aed33
commit
659c94d483
@ -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.
|
||||
* 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[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
725,
|
||||
/**/
|
||||
724,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user