* no copy indent
* no magic right click
* Ctrl+Up,Dn not bound or not working
-* Undo does not clear modified status if state is the same
* gap buffer does not handle UTF-8 currently
Up Next:
char* gapend; /* end of the gap */
Log* undo; /* undo list */
Log* redo; /* redo list */
+ Log* save; /* pointer to last save position */
int transid; /* id number of the current transaction */
Sel selection; /* the currently selected text */
} Buf;
} else {
buf->status = ERRORED;
}
+ if (buf->status == NORMAL)
+ buf->save = buf->undo;
return buf->status;
}
log_swap(buf, src, dest);
else
dumplog(buf);
+ if (buf->save == buf->undo)
+ buf->status = NORMAL;
}
void buf_logstart(Buf* buf) {