0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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

@@ -3861,13 +3861,13 @@ im_get_feedback_attr(int col)
if (preedit_string != NULL && attr_list != NULL)
{
int index;
int idx;
/* Get the byte index as used by PangoAttrIterator */
for (index = 0; col > 0 && preedit_string[index] != '\0'; --col)
index += utfc_ptr2len((char_u *)preedit_string + index);
for (idx = 0; col > 0 && preedit_string[idx] != '\0'; --col)
idx += utfc_ptr2len((char_u *)preedit_string + idx);
if (preedit_string[index] != '\0')
if (preedit_string[idx] != '\0')
{
PangoAttrIterator *iter;
int start, end;
@@ -3880,7 +3880,7 @@ im_get_feedback_attr(int col)
{
pango_attr_iterator_range(iter, &start, &end);
if (index >= start && index < end)
if (idx >= start && idx < end)
char_attr |= translate_pango_attributes(iter);
}
while (pango_attr_iterator_next(iter));