Revision: 1342 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1342&view=re... Author: frlan Date: 2010-05-10 22:08:11 +0000 (Mon, 10 May 2010)
Log Message: ----------- GeanyLaTeX: Set cursor correct after setting the indent
Modified Paths: -------------- trunk/geanylatex/doc/geanylatex.pdf trunk/geanylatex/src/latexenvironments.c
Modified: trunk/geanylatex/doc/geanylatex.pdf =================================================================== (Binary files differ)
Modified: trunk/geanylatex/src/latexenvironments.c =================================================================== --- trunk/geanylatex/src/latexenvironments.c 2010-05-10 22:07:37 UTC (rev 1341) +++ trunk/geanylatex/src/latexenvironments.c 2010-05-10 22:08:11 UTC (rev 1342) @@ -138,6 +138,13 @@ sci_set_line_indentation(doc->editor->sci, sci_get_current_line(doc->editor->sci) + 1, indent);
+ if (indent != 0 && type != GLATEX_ENVIRONMENT_TYPE_LIST) + { + sci_set_current_position(doc->editor->sci, + sci_get_current_position(doc->editor->sci) + indent - + (editor_get_eol_char_len(doc->editor) + 1), TRUE); + } + g_free(tmp);
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.
plugins-commits@lists.geany.org