From 8a5cda6167e55a7f4e5f7c93cf69a14906b25f33 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 24 Oct 2001 13:47:13 +0000 Subject: 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 --- src/fe-text/statusbar-items.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/fe-text/statusbar-items.c') 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, -- cgit v1.2.3