summaryrefslogtreecommitdiff
path: root/src/gtkext
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtkext')
-rw-r--r--src/gtkext/gtkblockview.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gtkext/gtkblockview.c b/src/gtkext/gtkblockview.c
index ae4b1a8..a4f0d3e 100644
--- a/src/gtkext/gtkblockview.c
+++ b/src/gtkext/gtkblockview.c
@@ -318,6 +318,8 @@ static void g_delayed_insertion_process(GDelayedInsertion *insertion, GtkExtStat
lines = GTK_BIN_VIEW(view)->lines;
last = GTK_BIN_VIEW(view)->last;
+ if (lines == NULL) return;
+
iter = g_rendering_line_loop_for_code(lines, last);
start = get_rendering_line_address(lines);
@@ -867,6 +869,8 @@ static gboolean gtk_block_view_expose(GtkWidget *widget, GdkEventExpose *event)
mark = gtk_text_iter_get_marks(&iter)->data;
line = g_object_get_data(G_OBJECT(mark), "line");
+ if (line == NULL) break;
+
flags = g_rendering_line_get_flags(line);
if (flags & RLF_RUNNING_BP)
@@ -1081,6 +1085,8 @@ static void gtk_block_view_complete_building_content(GDelayedInsertion *insertio
gtk_text_layout_set_buffer(view->layout, view->buffer);
+ gtk_text_layout_set_cursor_visible(GTK_BLOCK_VIEW(view)->layout, FALSE);
+
gtk_text_buffer_get_end_iter(view->buffer, &pos);
gtk_text_layout_move_iter_visually(view->layout, &pos, -1);
gtk_text_layout_get_iter_location(view->layout, &pos, &rect);