comparison src/proto/message.pro @ 3277:55cebc7e5de0 v7.3.407

updated for version 7.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.
author Bram Moolenaar <bram@vim.org>
date Fri, 20 Jan 2012 20:44:43 +0100
parents 951641b8784d
children 19040069b8bf
comparison
equal deleted inserted replaced
3276:98958001bcfb 3277:55cebc7e5de0
2 int msg __ARGS((char_u *s)); 2 int msg __ARGS((char_u *s));
3 int verb_msg __ARGS((char_u *s)); 3 int verb_msg __ARGS((char_u *s));
4 int msg_attr __ARGS((char_u *s, int attr)); 4 int msg_attr __ARGS((char_u *s, int attr));
5 int msg_attr_keep __ARGS((char_u *s, int attr, int keep)); 5 int msg_attr_keep __ARGS((char_u *s, int attr, int keep));
6 char_u *msg_strtrunc __ARGS((char_u *s, int force)); 6 char_u *msg_strtrunc __ARGS((char_u *s, int force));
7 void trunc_string __ARGS((char_u *s, char_u *buf, int room)); 7 void trunc_string __ARGS((char_u *s, char_u *buf, int room, int buflen));
8 void reset_last_sourcing __ARGS((void)); 8 void reset_last_sourcing __ARGS((void));
9 void msg_source __ARGS((int attr)); 9 void msg_source __ARGS((int attr));
10 int emsg_not_now __ARGS((void)); 10 int emsg_not_now __ARGS((void));
11 int emsg __ARGS((char_u *s)); 11 int emsg __ARGS((char_u *s));
12 int emsg2 __ARGS((char_u *s, char_u *a1)); 12 int emsg2 __ARGS((char_u *s, char_u *a1));