void
selcopy(void) {
char *str, *ptr;
- int x, y, bufsize, isselected = 0, size;
+ int x, y, bufsize, size;
Glyph *gp, *last;
if(sel.bx == -1) {
/* append every set & selected glyph to the selection */
for(y = sel.b.y; y < sel.e.y + 1; y++) {
- isselected = 0;
gp = &term.line[y][0];
last = gp + term.col;
for(x = 0; gp <= last; x++, ++gp) {
if(!selected(x, y)) {
continue;
- } else {
- isselected = 1;
}
size = utf8size(gp->c);
* st.
* FIXME: Fix the computer world.
*/
- if(isselected && y < sel.e.y)
+ if(y < sel.e.y)
*ptr++ = '\n';
}
*ptr = 0;
tmoveto(term.c.x, term.c.y);
/* Clearing both screens */
orig = term.line;
- do {
+ do {
if(mincol < col && 0 < minrow) {
tclearregion(mincol, 0, col - 1, minrow - 1);
}