summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-20 06:18:07 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-08-20 06:18:07 +0000
commit45c047f5c0567f45429b48e8a9be3f4526b0de41 (patch)
tree32cd4d3a09d4050dcae040728ed42e99d349563d
parentfff5a83957ead5fdd64b606eeb90cb5316fcb8fa (diff)
parentda1232caaf511798c3bebfde45f7e95dd673f48c (diff)
downloadgtk+-45c047f5c0567f45429b48e8a9be3f4526b0de41.tar.gz
Merge branch 'block-cursor-fixes' into 'master'
textview: Don't eat block cursors See merge request GNOME/gtk!3857
-rw-r--r--gtk/gtktextlayout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index ea5e85a577..80fb0a2bf1 100644
--- a/gtk/gtktextlayout.c
+++ b/gtk/gtktextlayout.c
@@ -4213,7 +4213,8 @@ gtk_text_layout_snapshot (GtkTextLayout *layout,
if (line_display->node == NULL &&
(pango_layout_get_character_count (line_display->layout) > 0 ||
- selection_start_index != -1 || selection_end_index != -1))
+ selection_start_index != -1 || selection_end_index != -1 ||
+ line_display->has_block_cursor))
{
gtk_snapshot_push_collect (snapshot);
render_para (crenderer, line_display,