[gedit/docstream2: 15/16] Set loader detected newline type in document after loading
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit/docstream2: 15/16] Set loader detected newline type in document after loading
- Date: Sat, 23 Jan 2010 13:31:25 +0000 (UTC)
commit d50bb7f737cd17e9014e2beae0f15b5a3fd1b5c6
Author: Jesse van den Kieboom <jesse icecrew nl>
Date: Sat Jan 23 14:27:47 2010 +0100
Set loader detected newline type in document after loading
gedit/gedit-document.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index 1e484a5..b35e952 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -1187,9 +1187,13 @@ document_loader_loaded (GeditDocumentLoader *loader,
set_encoding (doc,
gedit_document_loader_get_encoding (loader),
(doc->priv->requested_encoding != NULL));
-
+
+
set_content_type (doc, content_type);
+ gedit_document_set_newline_type (doc,
+ gedit_document_loader_get_newline_type (loader));
+
/* move the cursor at the requested line if any */
if (doc->priv->requested_line_pos > 0)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]