diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-07-24 21:42:40 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-07-24 21:42:40 +0000 |
commit | 3337dfcae5505236eb11e61323ce2d58d9f54fed (patch) | |
tree | e67bb1ebd90208ba73da17605567bd29d5f4a6fb /window-copy.c | |
parent | 815b2174827a3aaf333d47771b767a92b9e0f96f (diff) | |
download | rtmux-3337dfcae5505236eb11e61323ce2d58d9f54fed.tar.gz rtmux-3337dfcae5505236eb11e61323ce2d58d9f54fed.tar.bz2 rtmux-3337dfcae5505236eb11e61323ce2d58d9f54fed.zip |
Support keypad mode, and get rid of SCREEN_DEF*. Meant to commit these separately but forgot :-/.
Diffstat (limited to 'window-copy.c')
-rw-r--r-- | window-copy.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/window-copy.c b/window-copy.c index 196e49f6..f3943b07 100644 --- a/window-copy.c +++ b/window-copy.c @@ -1,4 +1,4 @@ -/* $Id: window-copy.c,v 1.26 2008-07-02 21:22:57 nicm Exp $ */ +/* $Id: window-copy.c,v 1.27 2008-07-24 21:42:40 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -215,8 +215,7 @@ window_copy_write_line( screen_write_move_cursor(ctx, 0, 0); size = screen_write_put_string_rjust( ctx, "[%u,%u/%u]", data->ox, data->oy, w->base.hsize); - screen_write_set_attributes( - ctx, SCREEN_DEFATTR, SCREEN_DEFCOLR); + screen_write_set_attributes(ctx, 0, 0x88); } else size = 0; screen_write_move_cursor(ctx, 0, py); @@ -458,7 +457,7 @@ window_copy_find_length(struct window *w, u_int py) u_int px; px = w->base.grid_size[py]; - while (px > 0 && w->base.grid_data[py][px - 1] == SCREEN_DEFDATA) + while (px > 0 && w->base.grid_data[py][px - 1] == ' ') px--; return (px); } |