-/* $OpenBSD: window-copy.c,v 1.193 2018/08/01 15:22:40 nicm Exp $ */
+/* $OpenBSD: window-copy.c,v 1.194 2018/08/05 08:59:30 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
struct window_copy_mode_data *data;
struct screen *s;
- wp->modedata = data = xmalloc(sizeof *data);
-
- data->oy = 0;
- data->cx = 0;
- data->cy = 0;
+ wp->modedata = data = xcalloc(1, sizeof *data);
data->cursordrag = CURSORDRAG_NONE;
-
- data->lastcx = 0;
- data->lastsx = 0;
-
- data->backing_written = 0;
-
data->lineflag = LINE_SEL_NONE;
- data->rectflag = 0;
- data->scroll_exit = 0;
if (wp->searchstr != NULL) {
data->searchtype = WINDOW_COPY_SEARCHUP;
-/* $OpenBSD: window.c,v 1.211 2018/08/02 18:35:21 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.212 2018/08/05 08:59:30 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
char *argv0, *cmd, **argvp;
const char *ptr, *first, *home;
struct termios tio2;
- int i;
sigset_t set, oldset;
if (wp->fd != -1) {