Revision: 491 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=491&view=rev Author: frlan Date: 2009-02-18 00:22:13 +0000 (Wed, 18 Feb 2009)
Log Message: ----------- GeanyLaTeX: Exclude \ from replacement function; Known minor issue when typing \ after a special character was replaced
Modified Paths: -------------- trunk/geanylatex/src/letters.c
Modified: trunk/geanylatex/src/letters.c =================================================================== --- trunk/geanylatex/src/letters.c 2009-02-18 00:21:47 UTC (rev 490) +++ trunk/geanylatex/src/letters.c 2009-02-18 00:22:13 UTC (rev 491) @@ -215,17 +215,18 @@
};
- gchar *glatex_get_entity(const gchar *letter) { - guint i, len; - - len = G_N_ELEMENTS(glatex_char_array); - for (i = 0; i < len; i++) + if (! utils_str_equal(letter, "\")) { - if (utils_str_equal(glatex_char_array[i].label, letter)) + guint i, len; + len = G_N_ELEMENTS(glatex_char_array); + for (i = 0; i < len; i++) { - return glatex_char_array[i].latex; + if (utils_str_equal(glatex_char_array[i].label, letter)) + { + return glatex_char_array[i].latex; + } } }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org