Fix pasting bug(>128bytes).

Submitted by:	kcwu via #bsdchat
This commit is contained in:
Vanilla I. Shu 2004-04-11 13:25:23 +00:00
parent 2141fab556
commit c153e272b6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=106723
2 changed files with 11 additions and 2 deletions

View File

@ -5,7 +5,7 @@
# $FreeBSD$
#
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= chinese
MAINTAINER= vanilla@FreeBSD.org

View File

@ -1,5 +1,5 @@
--- src/fe-text/term-terminfo.c.orig Mon Oct 20 03:10:02 2003
+++ src/fe-text/term-terminfo.c Sun Dec 14 01:54:28 2003
+++ src/fe-text/term-terminfo.c Sun Apr 11 21:11:41 2004
@@ -421,16 +421,21 @@
if (vcy == term_height-1 && vcx == term_width-1)
return; /* last char in screen */
@ -33,3 +33,12 @@
term_printed_text(len);
if (vcy != term_height || vcx != 0)
@@ -640,7 +645,7 @@
if (i >= term_inbuf_pos)
term_inbuf_pos = 0;
else if (i > 0) {
- memmove(term_inbuf+i, term_inbuf, term_inbuf_pos-i);
+ memmove(term_inbuf, term_inbuf+i, term_inbuf_pos-i);
term_inbuf_pos -= i;
}
}