SF.net SVN: geany-plugins:[589] trunk/geanylipsum
frlan at users.sourceforge.net
frlan at xxxxx
Mon Apr 13 19:31:12 UTC 2009
Revision: 589
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=589&view=rev
Author: frlan
Date: 2009-04-13 19:31:11 +0000 (Mon, 13 Apr 2009)
Log Message:
-----------
GeanyLipsum: Add not complete part of Lorem Ipsum text if there is any at end of insertion
Modified Paths:
--------------
trunk/geanylipsum/ChangeLog
trunk/geanylipsum/src/geanylipsum.c
Modified: trunk/geanylipsum/ChangeLog
===================================================================
--- trunk/geanylipsum/ChangeLog 2009-04-13 19:30:11 UTC (rev 588)
+++ trunk/geanylipsum/ChangeLog 2009-04-13 19:31:11 UTC (rev 589)
@@ -1,3 +1,9 @@
+2009-04-11 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
+
+ * Add not complete part of Lorem Ipsum text if there is any at end of
+ insertion.
+
+
2009-04-01 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* Preparation for 0.1.1 maintenance release
Modified: trunk/geanylipsum/src/geanylipsum.c
===================================================================
--- trunk/geanylipsum/src/geanylipsum.c 2009-04-13 19:30:11 UTC (rev 588)
+++ trunk/geanylipsum/src/geanylipsum.c 2009-04-13 19:31:11 UTC (rev 589)
@@ -114,16 +114,15 @@
sci_start_undo_action(doc->editor->sci);
/* Insert lipsum snippet as often as needed ... */
- for (i = 0; i < x; i++)
- insert_string(doc, lipsum);
-
- /* .. and insert a little more if needed */
if (missing > 0)
{
gchar *missing_text = g_strndup(lipsum, missing);
insert_string(doc, missing_text);
g_free(missing_text);
}
+ for (i = 0; i < x; i++)
+ insert_string(doc, lipsum);
+
sci_end_undo_action(doc->editor->sci);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list