summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons/scmouse.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-03-13 10:23:01 +0000
committerache <ache@FreeBSD.org>2001-03-13 10:23:01 +0000
commit3cf204f73d0d9a605286ef73cf6608c9da8f1249 (patch)
treefd3123f09adf11b46a95b91f13326efae9512d1d /sys/dev/syscons/scmouse.c
parent07103528896aa38497e94cad2f4161aeb1471368 (diff)
downloadFreeBSD-src-3cf204f73d0d9a605286ef73cf6608c9da8f1249.zip
FreeBSD-src-3cf204f73d0d9a605286ef73cf6608c9da8f1249.tar.gz
Multiply empty lines pasted as single line, fix it
Diffstat (limited to 'sys/dev/syscons/scmouse.c')
-rw-r--r--sys/dev/syscons/scmouse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/syscons/scmouse.c b/sys/dev/syscons/scmouse.c
index dd1e2c5..6e8f0a5 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';
OpenPOWER on IntegriCloud