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 -- [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/d/optout.

Raspunde prin e-mail lui