version 1.32, 2009/10/17 08:32:18 |
version 1.33, 2009/10/17 08:35:38 |
|
|
struct tty_ctx ttyctx; |
struct tty_ctx ttyctx; |
struct grid_utf8 gu, *tmp_gu; |
struct grid_utf8 gu, *tmp_gu; |
u_int width, xx, i; |
u_int width, xx, i; |
struct grid_cell tmp_gc, tmp_gc2, *tmp_gcp; |
struct grid_cell tmp_gc, *tmp_gcp; |
int insert = 0; |
int insert = 0; |
|
|
/* Ignore padding. */ |
/* Ignore padding. */ |
|
|
} |
} |
ttyctx.utf8 = &gu; |
ttyctx.utf8 = &gu; |
if (screen_check_selection(s, s->cx - width, s->cy)) { |
if (screen_check_selection(s, s->cx - width, s->cy)) { |
memcpy(&tmp_gc2, &s->sel.cell, sizeof tmp_gc2); |
memcpy(&tmp_gc, &s->sel.cell, sizeof tmp_gc); |
tmp_gc2.data = gc->data; |
tmp_gc.data = gc->data; |
tmp_gc2.flags = gc->flags & |
tmp_gc.flags = gc->flags & |
~(GRID_FLAG_FG256|GRID_FLAG_BG256); |
~(GRID_FLAG_FG256|GRID_FLAG_BG256); |
tmp_gc2.flags |= s->sel.cell.flags & |
tmp_gc.flags |= s->sel.cell.flags & |
(GRID_FLAG_FG256|GRID_FLAG_BG256); |
(GRID_FLAG_FG256|GRID_FLAG_BG256); |
ttyctx.cell = &tmp_gc2; |
ttyctx.cell = &tmp_gc; |
tty_write(tty_cmd_cell, &ttyctx); |
tty_write(tty_cmd_cell, &ttyctx); |
} else { |
} else { |
ttyctx.cell = gc; |
ttyctx.cell = gc; |