1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Crash when splitting a window with zero height. (Yukihiro
13 Solution: Don't set the fraction in a window with zero height.
17 *** ../vim-7.3.098/src/window.c 2010-12-17 17:35:05.000000000 +0100
18 --- src/window.c 2011-01-08 14:41:32.000000000 +0100
22 /* Set w_fraction now so that the cursor keeps the same relative
23 * vertical position. */
24 ! set_fraction(oldwin);
25 wp->w_fraction = oldwin->w_fraction;
30 /* Set w_fraction now so that the cursor keeps the same relative
31 * vertical position. */
32 ! if (oldwin->w_height > 0)
33 ! set_fraction(oldwin);
34 wp->w_fraction = oldwin->w_fraction;
37 *** ../vim-7.3.098/src/version.c 2011-01-04 19:25:46.000000000 +0100
38 --- src/version.c 2011-01-08 14:44:02.000000000 +0100
42 { /* Add new patch number below this line */
48 From "know your smileys":
49 8-O "Omigod!!" (done "rm -rf *" ?)
51 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
52 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
53 \\\ an exciting new programming language -- http://www.Zimbu.org ///
54 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///