Patch 7.4.2357 Problem: Attempt to read history entry while not initialized. Solution: Skip when the index is negative. Files: src/ex_getln.c
*** ../vim-7.4.2356/src/ex_getln.c 2016-09-05 21:51:10.267270461 +0200 --- src/ex_getln.c 2016-09-09 21:35:27.423791818 +0200 *************** *** 5762,5768 **** */ if (histype == HIST_SEARCH && in_map) { ! if (maptick == last_maptick) { /* Current line is from the same mapping, remove it */ hisptr = &history[HIST_SEARCH][hisidx[HIST_SEARCH]]; --- 5762,5768 ---- */ if (histype == HIST_SEARCH && in_map) { ! if (maptick == last_maptick && hisidx[HIST_SEARCH] >= 0) { /* Current line is from the same mapping, remove it */ hisptr = &history[HIST_SEARCH][hisidx[HIST_SEARCH]]; *** ../vim-7.4.2356/src/version.c 2016-09-09 21:41:28.454932105 +0200 --- src/version.c 2016-09-09 21:42:02.626471903 +0200 *************** *** 765,766 **** --- 765,768 ---- { /* Add new patch number below this line */ + /**/ + 2357, /**/ -- hundred-and-one symptoms of being an internet addict: 218. Your spouse hands you a gift wrapped magnet with your PC's name on it and you accuse him or her of genocide. /// Bram Moolenaar -- b...@moolenaar.net -- 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 vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.