1
0
forked from aniani/vim

updated for version 7.0-070

This commit is contained in:
Bram Moolenaar
2006-08-29 15:30:07 +00:00
parent 4100af7840
commit 89d4032cae
26 changed files with 266 additions and 256 deletions

View File

@@ -926,7 +926,7 @@ requestBalloon(beval)
# define IS_NONPRINTABLE(c) (((c) < 0x20 && (c) != TAB && (c) != NL) \
|| (c) == DEL)
static void
set_printable_label_text(GtkLabel *label, char_u *msg)
set_printable_label_text(GtkLabel *label, char_u *text)
{
char_u *convbuf = NULL;
char_u *buf;
@@ -940,14 +940,14 @@ set_printable_label_text(GtkLabel *label, char_u *msg)
/* Convert to UTF-8 if it isn't already */
if (output_conv.vc_type != CONV_NONE)
{
convbuf = string_convert(&output_conv, msg, NULL);
convbuf = string_convert(&output_conv, text, NULL);
if (convbuf != NULL)
msg = convbuf;
text = convbuf;
}
/* First let's see how much we need to allocate */
len = 0;
for (p = msg; *p != NUL; p += charlen)
for (p = text; *p != NUL; p += charlen)
{
if ((*p & 0x80) == 0) /* be quick for ASCII */
{
@@ -992,7 +992,7 @@ set_printable_label_text(GtkLabel *label, char_u *msg)
(unsigned long)pixel, &color);
pdest = buf;
p = msg;
p = text;
while (*p != NUL)
{
/* Be quick for ASCII */