|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.072
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.072
|
|
|
22c937 |
Problem: Crash when using Insert mode completion.
|
|
|
22c937 |
Solution: Avoid going past the end of pum_array. (idea by Fransisco Lopes)
|
|
|
22c937 |
Files: src/popupmnu.c
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.071/src/popupmnu.c 2011-08-17 18:04:28.000000000 +0200
|
|
|
22c937 |
--- src/popupmnu.c 2013-11-02 04:01:06.000000000 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 282,287 ****
|
|
|
22c937 |
--- 282,291 ----
|
|
|
22c937 |
int round;
|
|
|
22c937 |
int n;
|
|
|
22c937 |
|
|
|
22c937 |
+ /* Never display more than we have */
|
|
|
22c937 |
+ if (pum_first > pum_size - pum_height)
|
|
|
22c937 |
+ pum_first = pum_size - pum_height;
|
|
|
22c937 |
+
|
|
|
22c937 |
if (pum_scrollbar)
|
|
|
22c937 |
{
|
|
|
22c937 |
thumb_heigth = pum_height * pum_height / pum_size;
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 672,681 ****
|
|
|
22c937 |
#endif
|
|
|
22c937 |
}
|
|
|
22c937 |
|
|
|
22c937 |
- /* Never display more than we have */
|
|
|
22c937 |
- if (pum_first > pum_size - pum_height)
|
|
|
22c937 |
- pum_first = pum_size - pum_height;
|
|
|
22c937 |
-
|
|
|
22c937 |
if (!resized)
|
|
|
22c937 |
pum_redraw();
|
|
|
22c937 |
|
|
|
22c937 |
--- 676,681 ----
|
|
|
22c937 |
*** ../vim-7.4.071/src/version.c 2013-11-06 04:01:31.000000000 +0100
|
|
|
22c937 |
--- src/version.c 2013-11-06 04:03:18.000000000 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 740,741 ****
|
|
|
22c937 |
--- 740,743 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 72,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
No children may attend school with their breath smelling of "wild onions."
|
|
|
22c937 |
[real standing law in West Virginia, United States of America]
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|