summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2015-09-21 23:00:31 +0200
committerailin-nemui <ailin-nemui@users.noreply.github.com>2015-09-21 23:00:31 +0200
commit85223a9b6b0c8a68abba367756763e3fd641be89 (patch)
tree67e5ca53c4a39424fde27d1335213cca036b7733 /src
parent211e84c1e968b0b13ecb0921479bc862ed76df3c (diff)
parentf39723f6510bf57c5d21d62d55be6eefb6305078 (diff)
downloadirssi-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.c2
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++;