BUGS:
-* trimming does not use a transaction
-* trimming does not update selection properly
+* no magic right click
* use transaction processing for joining lines
* implement mouse warping on search, jump to line, and focus change
* gap buffer does not handle UTF-8 currently
-* no magic right click
* mouse selection handling when mouse moves outside region
Up Next:
unsigned prev = 1;
buf->selection.beg = buf->selection.end = 0;
buf_logstart(buf);
- while (buf->selection.end < buf_end(buf) && prev != buf->selection.end) {
+ while (prev != buf->selection.end) {
int r = getb(buf, buf->selection.end);
/* If we reached a newline, then delete whatever we have selected */
if (r == '\r' || r == '\n') {