diff options
author | nicm <nicm> | 2020-09-16 18:37:55 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-09-16 18:37:55 +0000 |
commit | 869c0e860fcf0851ef1751ca9187599913ca056a (patch) | |
tree | 025c03510bf75ad47830d172b7f83cfe79f1ff3a /window-copy.c | |
parent | 1fed7e84a3d65c8fbfbb321b84236ccab7265d46 (diff) | |
download | rtmux-869c0e860fcf0851ef1751ca9187599913ca056a.tar.gz rtmux-869c0e860fcf0851ef1751ca9187599913ca056a.tar.bz2 rtmux-869c0e860fcf0851ef1751ca9187599913ca056a.zip |
Fix some warnings, GitHub issue 2382.
Diffstat (limited to 'window-copy.c')
-rw-r--r-- | window-copy.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/window-copy.c b/window-copy.c index 1f0f7e78..640a69ec 100644 --- a/window-copy.c +++ b/window-copy.c @@ -72,7 +72,6 @@ static int window_copy_search_marks(struct window_mode_entry *, struct screen *, int, int); static void window_copy_clear_marks(struct window_mode_entry *); static void window_copy_move_left(struct screen *, u_int *, u_int *, int); -static void window_copy_move_right(struct screen *, u_int *, u_int *, int); static int window_copy_is_lowercase(const char *); static int window_copy_search_jump(struct window_mode_entry *, struct grid *, struct grid *, u_int, u_int, u_int, int, int, @@ -2817,23 +2816,6 @@ window_copy_move_left(struct screen *s, u_int *fx, u_int *fy, int wrapflag) *fx = *fx - 1; } -static void -window_copy_move_right(struct screen *s, u_int *fx, u_int *fy, int wrapflag) -{ - if (*fx == screen_size_x(s) - 1) { /* right */ - if (*fy == screen_hsize(s) + screen_size_y(s) - 1) { /* bottom */ - if (wrapflag) { - *fx = 0; - *fy = 0; - } - return; - } - *fx = 0; - *fy = *fy + 1; - } else - *fx = *fx + 1; -} - static int window_copy_is_lowercase(const char *ptr) { @@ -2930,7 +2912,8 @@ window_copy_search_jump(struct window_mode_entry *wme, struct grid *gd, * down. */ static int -window_copy_search(struct window_mode_entry *wme, int direction, int regex, int again) +window_copy_search(struct window_mode_entry *wme, int direction, int regex, + int again) { struct window_pane *wp = wme->wp; struct window_copy_mode_data *data = wme->data; |