Skip to content

Fix attribute splicing

Matthias Clasen requested to merge fix-attribute-splicing into master

When the 'other' list contains attributes that are unlimited or exceed the range given to pango_attr_list_splice, those attributes were 'leaking' out of the range. The visible effect of this is that the underline of preedit text extends outside the preedit in some GTK entries.

Fix this by clipping the inserted attributes to the range. The documentation is not very explicit about this, but I believe this is the expected behavior.

Tests included.

Merge request reports