|
|
3ef2ca |
To: vim_dev@googlegroups.com
|
|
|
3ef2ca |
Subject: Patch 7.4.606
|
|
|
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.606
|
|
|
3ef2ca |
Problem: May crash when using a small window.
|
|
|
3ef2ca |
Solution: Avoid dividing by zero. (Christian Brabandt)
|
|
|
3ef2ca |
Files: src/normal.c
|
|
|
3ef2ca |
|
|
|
3ef2ca |
|
|
|
3ef2ca |
*** ../vim-7.4.605/src/normal.c 2015-01-14 17:52:26.603094340 +0100
|
|
|
3ef2ca |
--- src/normal.c 2015-01-27 20:59:18.721057793 +0100
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 4457,4462 ****
|
|
|
3ef2ca |
--- 4457,4464 ----
|
|
|
3ef2ca |
col_off2 = col_off1 - curwin_col_off2();
|
|
|
3ef2ca |
width1 = W_WIDTH(curwin) - col_off1;
|
|
|
3ef2ca |
width2 = W_WIDTH(curwin) - col_off2;
|
|
|
3ef2ca |
+ if (width2 == 0)
|
|
|
3ef2ca |
+ width2 = 1; /* avoid divide by zero */
|
|
|
3ef2ca |
|
|
|
3ef2ca |
#ifdef FEAT_VERTSPLIT
|
|
|
3ef2ca |
if (curwin->w_width != 0)
|
|
|
3ef2ca |
*** ../vim-7.4.605/src/version.c 2015-01-27 18:43:42.138535469 +0100
|
|
|
3ef2ca |
--- src/version.c 2015-01-27 20:41:07.697066323 +0100
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 743,744 ****
|
|
|
3ef2ca |
--- 743,746 ----
|
|
|
3ef2ca |
{ /* Add new patch number below this line */
|
|
|
3ef2ca |
+ /**/
|
|
|
3ef2ca |
+ 606,
|
|
|
3ef2ca |
/**/
|
|
|
3ef2ca |
|
|
|
3ef2ca |
--
|
|
|
3ef2ca |
hundred-and-one symptoms of being an internet addict:
|
|
|
3ef2ca |
132. You come back and check this list every half-hour.
|
|
|
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 ///
|