SF.net SVN: geany: [624] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Tue Jul 25 00:10:43 UTC 2006


Revision: 624
Author:   eht16
Date:     2006-07-24 17:10:36 -0700 (Mon, 24 Jul 2006)
ViewCVS:  http://svn.sourceforge.net/geany/?rev=624&view=rev

Log Message:
-----------
Set CR/LF as EOL mode on new files on Windows.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/document.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-07-25 00:09:28 UTC (rev 623)
+++ trunk/ChangeLog	2006-07-25 00:10:36 UTC (rev 624)
@@ -7,6 +7,7 @@
    src/main.c: Added menu item to the document menu to add/remove BOM.
  * src/win32.c, src/dialogs.c:
    Convert Unicode strings to wide characters to avoid weird display.
+ * src/document.c: Set CR/LF as EOL mode on new files on Windows.
 
 
 2006-07-24  Nick Treleaven  <nick.treleaven at btinternet.com>

Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c	2006-07-25 00:09:28 UTC (rev 623)
+++ trunk/src/document.c	2006-07-25 00:10:36 UTC (rev 624)
@@ -365,7 +365,11 @@
 		doc_list[idx].mtime = time(NULL);
 		doc_list[idx].changed = FALSE;
 		document_set_text_changed(idx);
+#ifdef GEANY_WIN32
+		sci_set_eol_mode(doc_list[idx].sci, SC_EOL_CRLF);
+#else
 		sci_set_eol_mode(doc_list[idx].sci, SC_EOL_LF);
+#endif
 		sci_set_line_numbers(doc_list[idx].sci, app->show_linenumber_margin, 0);
 		sci_empty_undo_buffer(doc_list[idx].sci);
 		sci_goto_pos(doc_list[idx].sci, 0, TRUE);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list