Leave the cursor above empty lines.

This commit is contained in:
nicm 2020-04-14 19:07:10 +00:00
parent e11295f42d
commit b9a00cbe8a
1 changed files with 1 additions and 3 deletions

View File

@ -130,8 +130,6 @@ static void window_copy_rectangle_toggle(struct window_mode_entry *);
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 @@ window_copy_clone_screen(struct screen *src, struct screen *hint)
}
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);