diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-02-25 21:56:46 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-02-25 21:56:46 +0000 |
commit | eae026f2f700e795e255af8a05d8f55695f50cb3 (patch) | |
tree | fdf52c02f0bcdb1fd59f28127b381cd2c078cf8a | |
parent | 092cca4b5f76414ad1788e68547a687a4f8a1606 (diff) | |
download | rtmux-eae026f2f700e795e255af8a05d8f55695f50cb3.tar.gz rtmux-eae026f2f700e795e255af8a05d8f55695f50cb3.tar.bz2 rtmux-eae026f2f700e795e255af8a05d8f55695f50cb3.zip |
Redraw selection properly.
-rw-r--r-- | cmd-copy-mode.c | 3 | ||||
-rw-r--r-- | screen-write.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/cmd-copy-mode.c b/cmd-copy-mode.c index 7968adf6..b5642a45 100644 --- a/cmd-copy-mode.c +++ b/cmd-copy-mode.c @@ -1,4 +1,4 @@ -/* $Id: cmd-copy-mode.c,v 1.15 2009-01-27 23:35:44 nicm Exp $ */ +/* $Id: cmd-copy-mode.c,v 1.16 2009-02-25 21:56:46 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -52,6 +52,5 @@ cmd_copy_mode_exec(struct cmd *self, struct cmd_ctx *ctx) if (data->flags & CMD_UFLAG) window_copy_pageup(wl->window->active); - return (0); } diff --git a/screen-write.c b/screen-write.c index fa3f5a40..0ac07e32 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1,4 +1,4 @@ -/* $Id: screen-write.c,v 1.35 2009-02-24 21:49:05 nicm Exp $ */ +/* $Id: screen-write.c,v 1.36 2009-02-25 21:56:46 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -616,7 +616,7 @@ screen_write_cell(struct screen_write_ctx *ctx, const struct grid_cell *gc) s->cx += width; /* Draw to the screen if necessary. */ - if (screen_check_selection(s, s->cx, s->cy)) { + if (screen_check_selection(s, s->cx - width, s->cy)) { memcpy(&tc, &s->sel.cell, sizeof tc); tc.data = gc->data; tty_write_cmd(ctx->wp, TTY_CELL, &tc); |