Problem: Crash on exit writing viminfo. (Ron Aaron)
Solution: Check for the history to be empty.
*/
for (round = 1; round <= 2; ++round)
{
- i = round == 1 ? hisidx[type] : 0;
+ if (round == 1)
+ /* start at newest entry, somewhere in the list */
+ i = hisidx[type];
+ else if (viminfo_hisidx[type] > 0)
+ /* start at newest entry, first in the list */
+ i = 0;
+ else
+ /* empty list */
+ i = -1;
if (i >= 0)
while (num_saved > 0
&& !(round == 2 && i >= viminfo_hisidx[type]))
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 903,
/**/
902,
/**/