Ron Aaron wrote:

> Same place.  The "viminfo_history" has zeroes:
> 
> (gdb) l
> 6228              if (i >= 0)
> 6229                  while (num_saved > 0
> 6230                          && !(round == 2 && i >= viminfo_hisidx[type]))
> 6231                  {
> 6232                      p = round == 1 ? history[type][i].hisstr
> 6233                                                     : 
> viminfo_history[type][i];
> 6234                      if (p != NULL && (round == 2 || 
> !history[type][i].viminfo))
> 6235                      {
> 6236                          --num_saved;
> 6237                          fputc(hist_type2char(type, TRUE), fp);
> (gdb) p history
> $1 = {0x848c000, 0x848d400, 0x848ca00, 0x848f200, 0x848e800}
> (gdb) p viminfo_history
> $2 = {0x0, 0x0, 0x0, 0x0, 0x0}

I don't understand how it can get there.  When the pointer is NULL then
viminfo_hisidx[type] must be zero and the "if (i >= 0)" must be false.

Perhaps a stack trace will help.  Or setting a breakpoint at
write_viminfo_history() and stepping through it.  And check that
finish_viminfo_history() isn't called.  You did include the change in
ex_cmds.c, right?

-- 
hundred-and-one symptoms of being an internet addict:
178. You look for an icon to double-click to open your bedroom window.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui