To: vim_dev@googlegroups.com Subject: Patch 8.0.1396 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1396 Problem: Memory leak when CTRL-G in search command line fails. Solution: Move restore_last_search_pattern to after "if". Files: src/ex_getln.c *** ../vim-8.0.1395/src/ex_getln.c 2017-12-16 16:33:39.699175901 +0100 --- src/ex_getln.c 2017-12-16 19:02:00.583872772 +0100 *************** *** 1810,1820 **** # endif old_botline = curwin->w_botline; update_screen(NOT_VALID); - restore_last_search_pattern(); redrawcmdline(); } else vim_beep(BO_ERROR); goto cmdline_not_changed; } break; --- 1810,1820 ---- # endif old_botline = curwin->w_botline; update_screen(NOT_VALID); redrawcmdline(); } else vim_beep(BO_ERROR); + restore_last_search_pattern(); goto cmdline_not_changed; } break; *** ../vim-8.0.1395/src/version.c 2017-12-16 18:53:01.675551340 +0100 --- src/version.c 2017-12-16 19:04:36.298813888 +0100 *************** *** 773,774 **** --- 773,776 ---- { /* Add new patch number below this line */ + /**/ + 1396, /**/ -- hundred-and-one symptoms of being an internet addict: 111. You and your friends get together regularly on IRC, even though all of you live in the same city. /// 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 ///