summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pluma/pluma-gio-document-loader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pluma/pluma-gio-document-loader.c b/pluma/pluma-gio-document-loader.c
index c8a59d62..c1377578 100644
--- a/pluma/pluma-gio-document-loader.c
+++ b/pluma/pluma-gio-document-loader.c
@@ -389,6 +389,10 @@ async_read_cb (GInputStream *stream,
loader = PLUMA_DOCUMENT_LOADER (gvloader);
+ g_output_stream_flush (gvloader->priv->output,
+ NULL,
+ &gvloader->priv->error);
+
loader->auto_detected_encoding =
pluma_smart_charset_converter_get_guessed (gvloader->priv->converter);