From 3cf204f73d0d9a605286ef73cf6608c9da8f1249 Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 13 Mar 2001 10:23:01 +0000 Subject: [PATCH] Multiply empty lines pasted as single line, fix it --- sys/dev/syscons/scmouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/syscons/scmouse.c b/sys/dev/syscons/scmouse.c index dd1e2c5713fa..6e8f0a541d28 100644 --- a/sys/dev/syscons/scmouse.c +++ b/sys/dev/syscons/scmouse.c @@ -342,8 +342,8 @@ mouse_cut(scr_stat *scp) blank = i; /* the first space after the last non-space */ /* trim trailing blank when crossing lines */ if ((p % scp->xsize) == (scp->xsize - 1)) { - cut_buffer[blank] = '\r'; - i = blank + 1; + cut_buffer[blank++] = '\r'; + i = blank; } } cut_buffer[i] = '\0';