To: vim_dev@googlegroups.com Subject: Patch 7.4.2357 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@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 ///