mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #292 from dequis/mangled-text-paste-fix
Fix FS#905, mangled text when pasted line length exceeds 400
This commit is contained in:
commit
85223a9b6b
@ -237,7 +237,7 @@ static void paste_buffer_join_lines(GArray *buf)
|
|||||||
last_lf = FALSE;
|
last_lf = FALSE;
|
||||||
if (++line_len >= 400 && last_lf_pos != NULL) {
|
if (++line_len >= 400 && last_lf_pos != NULL) {
|
||||||
memmove(last_lf_pos+1, last_lf_pos,
|
memmove(last_lf_pos+1, last_lf_pos,
|
||||||
dest - last_lf_pos);
|
(dest - last_lf_pos) * sizeof(unichar));
|
||||||
*last_lf_pos = '\n'; last_lf_pos = NULL;
|
*last_lf_pos = '\n'; last_lf_pos = NULL;
|
||||||
line_len = 0;
|
line_len = 0;
|
||||||
dest++;
|
dest++;
|
||||||
|
Loading…
Reference in New Issue
Block a user