Kaydet (Commit) 458d2bb4 authored tarafından Nick Treleaven's avatar Nick Treleaven

Remove unneeded static from current word strings.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1131 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 40e4ab0d
......@@ -7,6 +7,8 @@
Separate recreate_tag_list() from ui_update_tag_list().
* src/vte.c:
Stop Valgrind complaining about a vc->emulation leak.
* src/callbacks.c, src/search.c:
Remove unneeded static from current word strings.
2006-12-18 Enrico Tröger <enrico.troeger@uvena.de>
......
......@@ -1245,7 +1245,7 @@ void
on_show_color_chooser1_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
static gchar colour[9];
gchar colour[9];
gint idx = document_get_cur_idx();
gint pos = sci_get_current_position(doc_list[idx].sci);
......
......@@ -231,11 +231,11 @@ static gchar *get_default_text(gint idx)
}
else if (sci_get_lines_selected(doc_list[idx].sci) == 0)
{ // use the word at current cursor position
static gchar word[GEANY_MAX_WORD_LENGTH];
gchar word[GEANY_MAX_WORD_LENGTH];
sci_cb_find_current_word(doc_list[idx].sci, -1, word, sizeof(word));
if (word[0] != '\0') s = g_strdup(word);
}
return s;
}
......
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