|
Karsten Hopp |
fe25ea |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
fe25ea |
Subject: Patch 7.4.606
|
|
Karsten Hopp |
fe25ea |
Fcc: outbox
|
|
Karsten Hopp |
fe25ea |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
fe25ea |
Mime-Version: 1.0
|
|
Karsten Hopp |
fe25ea |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
fe25ea |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
fe25ea |
------------
|
|
Karsten Hopp |
fe25ea |
|
|
Karsten Hopp |
fe25ea |
Patch 7.4.606
|
|
Karsten Hopp |
fe25ea |
Problem: May crash when using a small window.
|
|
Karsten Hopp |
fe25ea |
Solution: Avoid dividing by zero. (Christian Brabandt)
|
|
Karsten Hopp |
fe25ea |
Files: src/normal.c
|
|
Karsten Hopp |
fe25ea |
|
|
Karsten Hopp |
fe25ea |
|
|
Karsten Hopp |
fe25ea |
*** ../vim-7.4.605/src/normal.c 2015-01-14 17:52:26.603094340 +0100
|
|
Karsten Hopp |
fe25ea |
--- src/normal.c 2015-01-27 20:59:18.721057793 +0100
|
|
Karsten Hopp |
fe25ea |
***************
|
|
Karsten Hopp |
fe25ea |
*** 4457,4462 ****
|
|
Karsten Hopp |
fe25ea |
--- 4457,4464 ----
|
|
Karsten Hopp |
fe25ea |
col_off2 = col_off1 - curwin_col_off2();
|
|
Karsten Hopp |
fe25ea |
width1 = W_WIDTH(curwin) - col_off1;
|
|
Karsten Hopp |
fe25ea |
width2 = W_WIDTH(curwin) - col_off2;
|
|
Karsten Hopp |
fe25ea |
+ if (width2 == 0)
|
|
Karsten Hopp |
fe25ea |
+ width2 = 1; /* avoid divide by zero */
|
|
Karsten Hopp |
fe25ea |
|
|
Karsten Hopp |
fe25ea |
#ifdef FEAT_VERTSPLIT
|
|
Karsten Hopp |
fe25ea |
if (curwin->w_width != 0)
|
|
Karsten Hopp |
fe25ea |
*** ../vim-7.4.605/src/version.c 2015-01-27 18:43:42.138535469 +0100
|
|
Karsten Hopp |
fe25ea |
--- src/version.c 2015-01-27 20:41:07.697066323 +0100
|
|
Karsten Hopp |
fe25ea |
***************
|
|
Karsten Hopp |
fe25ea |
*** 743,744 ****
|
|
Karsten Hopp |
fe25ea |
--- 743,746 ----
|
|
Karsten Hopp |
fe25ea |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
fe25ea |
+ /**/
|
|
Karsten Hopp |
fe25ea |
+ 606,
|
|
Karsten Hopp |
fe25ea |
/**/
|
|
Karsten Hopp |
fe25ea |
|
|
Karsten Hopp |
fe25ea |
--
|
|
Karsten Hopp |
fe25ea |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
fe25ea |
132. You come back and check this list every half-hour.
|
|
Karsten Hopp |
fe25ea |
|
|
Karsten Hopp |
fe25ea |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
fe25ea |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
fe25ea |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
fe25ea |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|