From fd7c813d25a73eaf58af1d7343bd7a176e76d6c0 Mon Sep 17 00:00:00 2001 From: "Steffen (Daode) Nurpmeso" Date: Wed, 11 Jan 2017 18:16:04 +0100 Subject: [PATCH] NCL: fix real cause for rare SEGV after ^W (Ralph Corderoy) --- tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty.c b/tty.c index ef5c7ead..a8546fc2 100644 --- a/tty.c +++ b/tty.c @@ -1164,7 +1164,7 @@ _ncl_kbwddelw(struct line *l) l->cursor = c; cap = l->line.cells + c; - if (t != l->cursor) { + if (l->topins != l->cursor) { j = t - c + i; memmove(cap, cap + i, j * sizeof(*cap)); } -- 2.11.4.GIT