Kaydet (Commit) c5d9af4e authored tarafından Enrico Tröger's avatar Enrico Tröger

When completing from the macro list, put the cursor after the inserted text.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3866 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 42578b0e
......@@ -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>
......
......@@ -821,8 +821,7 @@ static gboolean on_editor_notify(G_GNUC_UNUSED GObject *object, GeanyEditor *edi
{
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment