summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2004-05-14 12:25:49 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2004-05-14 12:25:49 +0000
commit5df03ca730eeed9adcac33ab8fd67d5410d1dbfb (patch)
tree970af04ef6d1f654d41c5a74b3b4eb5260f63e7e /src
parent777bb76195e606ab69fe00afc5ec1a8ad43ebc98 (diff)
downloadirssi-5df03ca730eeed9adcac33ab8fd67d5410d1dbfb.zip
Pasting multibyte chars was buggy, patch by Kuang-che Wu
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3251 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-text/term-terminfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c
index 42edd6dc..2d5c4426 100644
--- a/src/fe-text/term-terminfo.c
+++ b/src/fe-text/term-terminfo.c
@@ -646,7 +646,7 @@ int term_gets(unichar *buffer, int size)
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;
}
}