# Issue List
-BUGS:
+## STAGING
* no magic right click
* implement mouse warping on search, jump to line, and focus change
* gap buffer does not handle UTF-8 currently
* mouse selection handling when mouse moves outside region
+* Line - Get the current line number(s) containing the selection
-Up Next:
+## BACKLOG
* move mouse handlers back into tide.c
* Add matching logic for "", '', ``, and <>
Tags:
* Clear - Clear the current window's edit buffer
-* Line - Get the current line number(s) containing the selection
* Kill - Kill a background command
* ID - Get window id of the X window
* Zerox - Create a copy of the window
Buf* buf = win_buf(FOCUSED);
if (buf->selection.beg <= buf->selection.end) {
buf->selection.beg = buf_bol(buf, buf->selection.beg);
- buf->selection.end = buf_eol(buf, buf->selection.end);
- buf->selection.end = buf_byrune(buf, buf->selection.end, RIGHT);
+ if (!buf_iseol(buf, buf->selection.end)) {
+ buf->selection.end = buf_eol(buf, buf->selection.end);
+ buf->selection.end = buf_byrune(buf, buf->selection.end, RIGHT);
+ }
} else {
- buf->selection.beg = buf_eol(buf, buf->selection.beg);
- buf->selection.beg = buf_byrune(buf, buf->selection.beg, RIGHT);
+ if (!buf_iseol(buf, buf->selection.beg)) {
+ buf->selection.beg = buf_eol(buf, buf->selection.beg);
+ buf->selection.beg = buf_byrune(buf, buf->selection.beg, RIGHT);
+ }
buf->selection.end = buf_bol(buf, buf->selection.end);
}
}
}
static void lnexec(char* cmd) {
- if (!view_selsize(win_view(FOCUSED)))
- select_line(NULL);
+ select_line(NULL);
exec(cmd);
}