diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2015-09-21 23:00:31 +0200 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2015-09-21 23:00:31 +0200 |
commit | 85223a9b6b0c8a68abba367756763e3fd641be89 (patch) | |
tree | 67e5ca53c4a39424fde27d1335213cca036b7733 /src | |
parent | 211e84c1e968b0b13ecb0921479bc862ed76df3c (diff) | |
parent | f39723f6510bf57c5d21d62d55be6eefb6305078 (diff) | |
download | irssi-85223a9b6b0c8a68abba367756763e3fd641be89.zip |
Merge pull request #292 from dequis/mangled-text-paste-fix
Fix FS#905, mangled text when pasted line length exceeds 400
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/gui-readline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index edc4c55d..ec61e317 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -237,7 +237,7 @@ static void paste_buffer_join_lines(GArray *buf) last_lf = FALSE; if (++line_len >= 400 && last_lf_pos != NULL) { 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; line_len = 0; dest++; |