Kaydet (Commit) 92a3f0a4 authored tarafından Nick Treleaven's avatar Nick Treleaven

Place the cursor in "" for insert blank include

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@679 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst d39510f4
2006-08-07 Nick Treleaven <nick.treleaven@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@btinternet.com>
......
......@@ -2430,12 +2430,13 @@ void
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 @@ on_insert_include_activate (GtkMenuItem *menuitem,
sci_insert_text(doc_list[idx].sci, clickpos, text);
g_free(text);
if (pos > 0) sci_goto_pos(doc_list[idx].sci, pos, FALSE);
}
......
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