1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Timo Sirainen 2004-05-14 12:25:49 +00:00 committed by cras
parent 777bb76195
commit 5df03ca730

View File

@ -646,7 +646,7 @@ int term_gets(unichar *buffer, int size)
if (i >= term_inbuf_pos) if (i >= term_inbuf_pos)
term_inbuf_pos = 0; term_inbuf_pos = 0;
else if (i > 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; term_inbuf_pos -= i;
} }
} }