Set cursor for LaTeX at auto closing of environment direct into area

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3593 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Frank Lanitz 2009-02-20 01:08:50 +00:00
parent c816cec79f
commit a75ed4d6e2
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2009-02-20 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* src/editor.c: Set cursor for LaTeX at auto closing of environment
direct into area.
2009-02-19 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/utils.h:

View File

@ -1733,7 +1733,7 @@ void editor_auto_latex(GeanyEditor *editor, gint pos)
construct = g_strdup_printf("%s\\end%s{%s}", eol, full_cmd, env);
SSM(sci, SCI_INSERTTEXT, pos, (sptr_t) construct);
sci_goto_pos(sci, pos + 1, TRUE);
sci_goto_pos(sci,pos, TRUE);
g_free(construct);
g_free(eol);
}