SF.net SVN: geany:[5304] trunk/src/editor.c
ntrel at users.sourceforge.net
ntrel at xxxxx
Wed Oct 20 11:38:37 UTC 2010
Revision: 5304
http://geany.svn.sourceforge.net/geany/?rev=5304&view=rev
Author: ntrel
Date: 2010-10-20 11:38:37 +0000 (Wed, 20 Oct 2010)
Log Message:
-----------
Use editor_get_eol_char() instead of inline copy.
Modified Paths:
--------------
trunk/src/editor.c
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2010-10-18 17:13:59 UTC (rev 5303)
+++ trunk/src/editor.c 2010-10-20 11:38:37 UTC (rev 5304)
@@ -4618,16 +4618,8 @@
}
if (append_newline)
{
- const gchar *eol = "\n";
- switch (sci_get_eol_mode(editor->sci))
- {
- case SC_EOL_CRLF:
- eol = "\r\n";
- break;
- case SC_EOL_CR:
- eol = "\r";
- break;
- }
+ const gchar *eol = editor_get_eol_char(editor);
+
sci_insert_text(editor->sci, end_document, eol);
}
}
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