4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Crash when 'virtualedit' is "all". (James Vega)
12 Solution: Avoid overflow when column is MAXCOL. (Dominique Pelle)
16 *** ../vim-7.2.138/src/misc2.c Tue Feb 24 04:28:40 2009
17 --- src/misc2.c Wed Mar 11 16:45:05 2009
22 #ifdef FEAT_VIRTUALEDIT
23 ! colnr_T oldcol = curwin->w_cursor.col + curwin->w_cursor.coladd;
26 len = (colnr_T)STRLEN(ml_get_curline());
30 #ifdef FEAT_VIRTUALEDIT
31 ! colnr_T oldcol = curwin->w_cursor.col;
32 ! colnr_T oldcoladd = curwin->w_cursor.col + curwin->w_cursor.coladd;
35 len = (colnr_T)STRLEN(ml_get_curline());
39 curwin->w_cursor.coladd = 0;
40 else if (ve_flags == VE_ALL)
41 ! curwin->w_cursor.coladd = oldcol - curwin->w_cursor.col;
47 curwin->w_cursor.coladd = 0;
48 else if (ve_flags == VE_ALL)
50 ! if (oldcoladd > curwin->w_cursor.col)
51 ! curwin->w_cursor.coladd = oldcoladd - curwin->w_cursor.col;
53 ! /* avoid weird number when there is a miscalculation or overflow */
54 ! curwin->w_cursor.coladd = 0;
59 *** ../vim-7.2.138/src/version.c Wed Mar 11 16:36:04 2009
60 --- src/version.c Wed Mar 11 17:26:50 2009
64 { /* Add new patch number below this line */
70 Some of the well know MS-Windows errors:
72 EUSER User error, not our fault!
73 EGOD Horrible problem, god knows what has happened
74 EERR Errornous error: nothing wrong
76 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
77 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
78 \\\ download, build and distribute -- http://www.A-A-P.org ///
79 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///