SF.net SVN: geany: [679] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Mon Aug 7 11:11:11 UTC 2006
Revision: 679
Author: ntrel
Date: 2006-08-07 04:11:05 -0700 (Mon, 07 Aug 2006)
ViewCVS: http://svn.sourceforge.net/geany/?rev=679&view=rev
Log Message:
-----------
Place the cursor in "" for insert blank include
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/callbacks.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-08-07 10:02:11 UTC (rev 678)
+++ trunk/ChangeLog 2006-08-07 11:11:05 UTC (rev 679)
@@ -1,6 +1,7 @@
2006-08-07 Nick Treleaven <nick.treleaven at btinternet.com>
* src/callbacks.c: Allow Find even when the replace text is the same.
+ Place the cursor in "" for insert blank include.
2006-08-06 Nick Treleaven <nick.treleaven at btinternet.com>
Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c 2006-08-07 10:02:11 UTC (rev 678)
+++ trunk/src/callbacks.c 2006-08-07 11:11:05 UTC (rev 679)
@@ -2430,12 +2430,13 @@
on_insert_include_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- gint idx = document_get_cur_idx();
+ gint idx = document_get_cur_idx(), pos = -1;
gchar *text;
if (utils_strcmp(user_data, "blank"))
{
text = g_strdup("#include \"\"\n");
+ pos = clickpos + 10;
}
else
{
@@ -2444,6 +2445,7 @@
sci_insert_text(doc_list[idx].sci, clickpos, text);
g_free(text);
+ if (pos > 0) sci_goto_pos(doc_list[idx].sci, pos, FALSE);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list