[1682] in BarnOwl Developers
[nelhage/barnowl] 845960: editwin: Properly update points inside a replaced ...
daemon@ATHENA.MIT.EDU (noreply@github.com)
Thu Oct 29 18:20:07 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@lunatique.mit.edu
X-Barracuda-Envelope-From: noreply@github.com
Date: Fri, 11 Sep 2009 20:48:06 -0700
To: barnowl-dev@mit.edu
From: noreply@github.com
Branch: refs/heads/master
Home: http://github.com/nelhage/barnowl
Commit: 845960945fa5fd3fedf0b812e55b968e94326116
http://github.com/nelhage/barnowl/commit/845960945fa5fd3fedf0b812e55b968e94326116
Author: Nelson Elhage <nelhage@mit.edu>
Date: 2009-09-11 (Fri, 11 Sep 2009)
Changed paths:
M editwin.c
Log Message:
-----------
editwin: Properly update points inside a replaced region.
If the point is inside a region that is replaced, the correct thing to
do is to send it to the new end, not the old end.
Moreover, if the region shrunk and was near the end of the buffer, the
old behavior would even result in e->index > e->bufflen, which could
result in a crash.