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