Dominique Pelle wrote:

> James Vega wrote:
> 
> > On Sat, Mar 07, 2009 at 04:30:30PM -0500, James Vega wrote:
> >> There seems to be an edge case when positioning the cursor and
> >> 'virtualedit' is set to all that causes gvim to crash. =A0This was
> >> introduced between 6.4 and 7.0b.
> >>
> >> It can be reproduced using the attached files as follows:
> >>
> >> =A0 gvim -u NONE -N -S crash.vim crash.txt
> >
> > Actually attached this time.
> >
> > --
> > James
> 
> My previous patch was only a workaround, but this
> new attached patch should be the actual bug fix.
> 
> Please review it.
> 
> oldcol can be MAXCOL when entering function
> check_cursor_col().  Function check_cursor_col()
> compares oldcol to MAXCOL _after_ having added
> curwin->w_cursor.coladd to it, so as a result it fails
> to see that it was MAXCOL.  Attached patch fixes it.

Thanks for the patch!

-- 
If Microsoft would build a car...
... Occasionally your car would die on the freeway for no
reason. You would have to pull over to the side of the road,
close all of the car windows, shut it off, restart it, and
reopen the windows before you could continue. For some reason
you would simply accept this.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui