=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/window-copy.c,v retrieving revision 1.272 retrieving revision 1.273 diff -u -r1.272 -r1.273 --- src/usr.bin/tmux/window-copy.c 2020/04/14 18:33:01 1.272 +++ src/usr.bin/tmux/window-copy.c 2020/04/14 19:07:10 1.273 @@ -1,4 +1,4 @@ -/* $OpenBSD: window-copy.c,v 1.272 2020/04/14 18:33:01 nicm Exp $ */ +/* $OpenBSD: window-copy.c,v 1.273 2020/04/14 19:07:10 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -130,8 +130,6 @@ static void window_copy_move_mouse(struct mouse_event *); static void window_copy_drag_update(struct client *, struct mouse_event *); static void window_copy_drag_release(struct client *, struct mouse_event *); -static struct screen *window_copy_clone_screen(struct screen *, - struct screen *); const struct window_mode window_copy_mode = { .name = "copy-mode", @@ -322,7 +320,7 @@ } screen_write_start(&ctx, NULL, dst); - screen_write_cursormove(&ctx, 0, dst->grid->sy - 1, 0); + screen_write_cursormove(&ctx, 0, dst->grid->sy + sy - dy - 1, 0); screen_write_stop(&ctx); return (dst);