Revision: 3866 http://geany.svn.sourceforge.net/geany/?rev=3866&view=rev Author: eht16 Date: 2009-06-14 10:41:10 +0000 (Sun, 14 Jun 2009)
Log Message: ----------- When completing from the macro list, put the cursor after the inserted text.
Modified Paths: -------------- trunk/ChangeLog trunk/src/editor.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2009-06-14 10:31:44 UTC (rev 3865) +++ trunk/ChangeLog 2009-06-14 10:41:10 UTC (rev 3866) @@ -4,6 +4,8 @@ Add Japanese encoding "CP932" (patch by Ryūsei Yamaguchi, thanks). * src/editor.c: Remove dead code. + When completing from the macro list, put the cursor after + the inserted text.
2009-06-12 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/editor.c =================================================================== --- trunk/src/editor.c 2009-06-14 10:31:44 UTC (rev 3865) +++ trunk/src/editor.c 2009-06-14 10:41:10 UTC (rev 3866) @@ -821,8 +821,7 @@ { if (nt->listType == 1) { - gint pos = SSM(sci, SCI_GETCURRENTPOS, 0, 0); - SSM(sci, SCI_INSERTTEXT, pos, (sptr_t) nt->text); + SSM(sci, SCI_ADDTEXT, strlen(nt->text), (sptr_t) nt->text); } break; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.