- gtk_text_iter_forward_to_line_end(&end);
- gtk_text_buffer_delete(buffer, &insert, &end);
-
- start_offset = gtk_text_iter_get_offset(&insert);
- gtk_text_buffer_insert(buffer, &insert, win->buffer->str + (length - chars_left), available_space);
- gtk_text_buffer_get_iter_at_offset(buffer, &start, start_offset);
-
- // Default style
- gtk_text_buffer_apply_tag(buffer, default_tag, &start, &insert);
-
- // Player's style overrides
- gtk_text_buffer_apply_tag(buffer, style_tag, &start, &insert);
-
- // GLK Program's style overrides
- gtk_text_buffer_apply_tag(buffer, glk_style_tag, &start, &insert);
-
- // Link style overrides
- if(win->window_stream->hyperlink_mode) {
- GtkTextTag *link_tag = win->current_hyperlink->tag;
- gtk_text_buffer_apply_tag(buffer, link_style_tag, &start, &insert);
- gtk_text_buffer_apply_tag(buffer, link_tag, &start, &insert);
- }
-
- // GLK Program's style overrides using garglk_set_zcolors()
- if(win->zcolor != NULL)
- gtk_text_buffer_apply_tag(buffer, win->zcolor, &start, &insert);
-
- // GLK Program's style overrides using garglk_set_reversevideo()
- if(win->zcolor_reversed != NULL) {
- gtk_text_buffer_apply_tag(buffer, win->zcolor_reversed, &start, &insert);
- }