version 1.89, 2016/05/30 09:32:24 |
version 1.90, 2016/06/06 07:28:52 |
|
|
if (skip) |
if (skip) |
skip = (memcmp(&now_gc, gc, sizeof now_gc) == 0); |
skip = (memcmp(&now_gc, gc, sizeof now_gc) == 0); |
|
|
/* Set the cell. */ |
/* Update the selection the flag and set the cell. */ |
if (!skip) |
selected = screen_check_selection(s, s->cx, s->cy); |
|
if (selected && ~gc->flags & GRID_FLAG_SELECTED) { |
|
skip = 0; |
|
memcpy(&tmp_gc, gc, sizeof tmp_gc); |
|
tmp_gc.flags |= GRID_FLAG_SELECTED; |
|
grid_view_set_cell(gd, s->cx, s->cy, &tmp_gc); |
|
} else if (!selected && gc->flags & GRID_FLAG_SELECTED) { |
|
skip = 0; |
|
memcpy(&tmp_gc, gc, sizeof tmp_gc); |
|
tmp_gc.flags &= ~GRID_FLAG_SELECTED; |
|
grid_view_set_cell(gd, s->cx, s->cy, &tmp_gc); |
|
} else if (!skip) |
grid_view_set_cell(gd, s->cx, s->cy, gc); |
grid_view_set_cell(gd, s->cx, s->cy, gc); |
|
|
/* |
/* |
|
|
ttyctx.num = width; |
ttyctx.num = width; |
tty_write(tty_cmd_insertcharacter, &ttyctx); |
tty_write(tty_cmd_insertcharacter, &ttyctx); |
} |
} |
|
|
/* Check if this is selected. */ |
|
selected = screen_check_selection(s, s->cx - width, s->cy); |
|
if (selected) |
|
skip = 0; |
|
|
|
/* Save last cell if it will be needed. */ |
/* Save last cell if it will be needed. */ |
if (!skip && ctx->wp != NULL && ttyctx.ocx > ctx->wp->sx - width) |
if (!skip && ctx->wp != NULL && ttyctx.ocx > ctx->wp->sx - width) |