diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-01-20 20:44:43 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-01-20 20:44:43 +0100 |
commit | f31b764c23ae9a91cd6119f57aee6ea80ec480d2 (patch) | |
tree | 534ff4ba7b47ee9789801b4e7f80fa2fef0e249e /src/proto/message.pro | |
parent | 3ef7cdf0fd040e7247bd395b51b107df0da081ef (diff) |
updated for version 7.3.407v7.3.407
Problem: ":12verbose call F()" may duplicate text while trying to truncate.
(Thinca)
Solution: Only truncate when there is not enough room. Also check the byte
length of the buffer.
Diffstat (limited to 'src/proto/message.pro')
-rw-r--r-- | src/proto/message.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/message.pro b/src/proto/message.pro index c59a9165f4..a12f1200c7 100644 --- a/src/proto/message.pro +++ b/src/proto/message.pro @@ -4,7 +4,7 @@ int verb_msg __ARGS((char_u *s)); int msg_attr __ARGS((char_u *s, int attr)); int msg_attr_keep __ARGS((char_u *s, int attr, int keep)); char_u *msg_strtrunc __ARGS((char_u *s, int force)); -void trunc_string __ARGS((char_u *s, char_u *buf, int room)); +void trunc_string __ARGS((char_u *s, char_u *buf, int room, int buflen)); void reset_last_sourcing __ARGS((void)); void msg_source __ARGS((int attr)); int emsg_not_now __ARGS((void)); |