0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.0029

This commit is contained in:
Bram Moolenaar
2005-01-03 21:02:03 +00:00
parent f9980f116b
commit d7ee7ce231
6 changed files with 271 additions and 60 deletions

View File

@@ -5149,7 +5149,13 @@ write_viminfo_registers(fp)
if (i == TILDE_REGISTER)
continue;
#endif
/* Skip empty registers. */
num_lines = y_regs[i].y_size;
if (num_lines == 0
|| (num_lines == 1 && y_regs[i].y_type == MCHAR
&& STRLEN(y_regs[i].y_array[0]) == 0))
continue;
if (max_kbyte > 0)
{
/* Skip register if there is more text than the maximum size. */