summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-10-24 13:47:13 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-10-24 13:47:13 +0000
commit8a5cda6167e55a7f4e5f7c93cf69a14906b25f33 (patch)
treec2ef5e901f69c4cfcb914eef09b1f37fcdc68405 /src/fe-text
parent1c9a8ab897e07249177bfd22ae4438c2deaed106 (diff)
downloadirssi-8a5cda6167e55a7f4e5f7c93cf69a14906b25f33.zip
Always set the newly created entry active. Currently we don't support multiple, but if the entry moves between statusbars sometimes we first create new one then destroy the old one and there's no active then..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1906 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/statusbar-items.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fe-text/statusbar-items.c b/src/fe-text/statusbar-items.c
index 53d386d0..6ef22dbc 100644
--- a/src/fe-text/statusbar-items.c
+++ b/src/fe-text/statusbar-items.c
@@ -286,8 +286,7 @@ static void item_input(SBAR_ITEM_REC *item, int get_size_only)
if (rec == NULL) {
rec = gui_entry_create(item->xpos, item->bar->real_ypos,
item->size);
- if (active_entry == NULL)
- gui_entry_set_active(rec);
+ gui_entry_set_active(rec);
g_hash_table_insert(input_entries, item, rec);
} else {
gui_entry_move(rec, item->xpos, item->bar->real_ypos,