GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit f46b302f authored by Kai Willadsen's avatar Kai Willadsen

sourceview: Make inline-highlighted text show whitespace (bgo#589366)

The rationale here is that if your differences include whitespace, it's
probably best that you be able to see the whitespace characters. The
downside is that under normal GtkSourceView themes, the whitespace
indicators are quite low-contrast, so between that and the coloured
background in these chunks, the indicators are very difficult to see.

This is being included on a provisional basis until I decide whether
it's actually okay or whether we need to fix some stuff before it goes
in.
parent 1ddd9fbc
......@@ -145,7 +145,9 @@ class MeldSourceView(GtkSource.View):
self._show_line_numbers = None
buf = MeldBuffer()
buf.create_tag("inline")
inline_tag = GtkSource.Tag.new("inline")
inline_tag.props.draw_spaces = True
buf.get_tag_table().add(inline_tag)
buf.create_tag("dimmed")
self.set_buffer(buf)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment