Project

General

Profile

Actions

Bug #502

closed

undo will add a line on top

Added by Reza Jelveh over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
libyzis
Target version:
Start date:
01/13/2009
Due date:
% Done:

100%

Estimated time:

Description

libyzis/buffer.cpp:314

 312   if ( !d->isLoading ) {
 313     YRawData deletedText = dataRegion(bi);
 314     d->undoBuffer->addBufferOperation(YBufferOperation::OpDelRegion, deletedText, bi);
 315     d->swapFile->addToSwap(YBufferOperation::OpDelRegion, deletedText, bi);
 316   } 

will cause an invalid undo. creating an empty first line.
the solution is to move d->isloading above clearText in load


Files

undofix.diff (569 Bytes) undofix.diff Reza Jelveh, 01/13/2009 03:42 AM
Actions

Also available in: Atom PDF