Revision: 1124 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1124&view=re... Author: frlan Date: 2010-01-15 18:54:31 +0000 (Fri, 15 Jan 2010)
Log Message: ----------- GeanyLaTeX: Make usage of plugin API v169 and editor_insert_text_block()
Modified Paths: -------------- trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2010-01-11 20:41:09 UTC (rev 1123) +++ trunk/geanylatex/src/geanylatex.c 2010-01-15 18:54:31 UTC (rev 1124) @@ -24,7 +24,7 @@
#include "geanylatex.h"
-PLUGIN_VERSION_CHECK(166) +PLUGIN_VERSION_CHECK(169)
PLUGIN_SET_INFO(_("GeanyLaTeX"), _("Plugin to provide better LaTeX support"), VERSION,"Frank Lanitz frank@frank.uvena.de") @@ -411,12 +411,14 @@ if (doc != NULL && string != NULL) { gint pos = sci_get_current_position(doc->editor->sci); - sci_insert_text(doc->editor->sci, pos, string); + gint len = 0; + if (reset_position == TRUE) { - gint len = strlen(string); - sci_set_current_position(doc->editor->sci, pos + len, TRUE); + len = strlen(string); } + + editor_insert_text_block(doc->editor, string, pos, len, -1, TRUE); } }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org