summaryrefslogtreecommitdiff
path: root/cmd-line-utils/readline/complete.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-line-utils/readline/complete.c')
-rw-r--r--cmd-line-utils/readline/complete.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd-line-utils/readline/complete.c b/cmd-line-utils/readline/complete.c
index d11ea2493a6..a51375cd2b7 100644
--- a/cmd-line-utils/readline/complete.c
+++ b/cmd-line-utils/readline/complete.c
@@ -673,8 +673,7 @@ fnprint (to_print)
w = wcwidth (wc);
width = (w >= 0) ? w : 1;
}
- fwrite (s, 1, tlen, rl_outstream);
- s += tlen;
+ s+= fwrite (s, 1, tlen, rl_outstream);
printed_len += width;
#else
putc (*s, rl_outstream);