SF.net SVN: geany-plugins:[1595] trunk/geanylatex/src/geanylatex.c
frlan at users.sourceforge.net
frlan at xxxxx
Sat Sep 18 23:35:14 UTC 2010
Revision: 1595
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1595&view=rev
Author: frlan
Date: 2010-09-18 23:35:14 +0000 (Sat, 18 Sep 2010)
Log Message:
-----------
GeanyLaTeX: Split declaration and definition of some variables
Modified Paths:
--------------
trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c 2010-09-18 23:34:30 UTC (rev 1594)
+++ trunk/geanylatex/src/geanylatex.c 2010-09-18 23:35:14 UTC (rev 1595)
@@ -458,9 +458,12 @@
/* Autocompletion for LaTeX specific stuff:
* Introducing \end{} or \endgroup{} after a \begin{}
- *
- * Function has been taken from Geany's core under terms of GPLv2+
- * where it was original developed. */
+
+ * Function is based on function which was inside
+ * Geany's core under terms of GPLv2+
+ * EXtended for GeanyLaTeX with some more autocompletion features
+ * for e.g. _{} and ^{}.*/
+
if (glatex_autocompletion_active == TRUE &&
!(glatex_autocompletion_only_for_latex == TRUE &&
editor->document->file_type->id != GEANY_FILETYPES_LATEX))
@@ -552,7 +555,6 @@
}
g_free(tmp);
g_free(end_construct);
-
}
/* After we have this, we need to ensure basic
@@ -569,7 +571,6 @@
indent);
g_free(construct);
}
-
g_free(buf);
}
@@ -577,13 +578,18 @@
* but no closing braces */
else if (glatex_autobraces_active == TRUE)
{
- gint line = sci_get_line_from_position(sci, pos -
- (editor_get_eol_char_len (editor) + 1));
- gint line_len = sci_get_line_length(sci, line) -
- editor_get_eol_char_len (editor);
+ gint line;
+
+ gint line_len;
gint i;
gchar *buf;
+ line = sci_get_line_from_position(sci, pos -
+ (editor_get_eol_char_len (editor) + 1));
+ line_len = sci_get_line_length(sci, line) -
+ editor_get_eol_char_len (editor);
+
+
/* Catching current line which has been 'finished'*/
buf = sci_get_line(sci, line);
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