diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-09-26 06:45:28 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-09-26 06:45:28 +0000 |
commit | 62457bce0b6d23c1b6a8206582ac3dd206d4225d (patch) | |
tree | 42428d54daf3273242003827d16ae37d81e50230 /window-copy.c | |
parent | df2b3bcf44299d7060b3bc6c17c6e80a1f358692 (diff) |
Trim.
Diffstat (limited to 'window-copy.c')
-rw-r--r-- | window-copy.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/window-copy.c b/window-copy.c index 27486ce9..fa1f6e3b 100644 --- a/window-copy.c +++ b/window-copy.c @@ -1,4 +1,4 @@ -/* $Id: window-copy.c,v 1.31 2008-09-25 20:08:57 nicm Exp $ */ +/* $Id: window-copy.c,v 1.32 2008-09-26 06:45:28 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -243,7 +243,7 @@ window_copy_write_column( struct screen *s = &data->screen; screen_write_cursormove(ctx, px, 0); - screen_write_copy(ctx, &w->base, + screen_write_copy(ctx, &w->base, data->ox, screen_hsize(&w->base) - data->oy, 1, screen_size_y(s)); } @@ -657,16 +657,16 @@ window_copy_cursor_next_word(struct window *w) if (data->oy == 0) goto out; } - + px = 0; window_copy_cursor_down(w); - + py =screen_hsize( &w->base) + data->cy - data->oy; xx = window_copy_find_length(w, py); } } - + if (skip) { /* Currently skipping non-space (until space). */ if (window_copy_is_space(w, px, py)) @@ -706,7 +706,7 @@ out: data->cx = screen_size_x(s) - 1; } } - + if (window_copy_update_selection(w)) window_copy_redraw_lines(w, data->cy, 1); else @@ -735,20 +735,20 @@ window_copy_cursor_previous_word(struct window *w) break; while (px == 0) { - if (data->cy == 0 && + if (data->cy == 0 && (screen_hsize(&w->base) == 0 || data->oy >= screen_hsize(&w->base) - 1)) goto out; - + window_copy_cursor_up(w); - + py = screen_hsize( &w->base) + data->cy - data->oy; px = window_copy_find_length(w, py); } goto out; } - + if (skip) { /* Currently skipping non-space (until space). */ if (window_copy_is_space(w, px - 1, py)) @@ -758,7 +758,7 @@ window_copy_cursor_previous_word(struct window *w) if (!window_copy_is_space(w, px - 1, py)) break; } - + px--; } out: @@ -788,7 +788,7 @@ out: data->cx = screen_size_x(s) - 1; } } - + if (window_copy_update_selection(w)) window_copy_redraw_lines(w, data->cy, 1); else |