From 30fdb32a9e9467d23ad79e6602ac5b30e47e21f1 Mon Sep 17 00:00:00 2001 From: oga Date: Mon, 22 Sep 2008 14:15:03 +0000 Subject: Display the current window title not a previous one in the case of ``show all'' in the window search dialogue. Noticed and diff from Tim van der Molen, thanks! --- search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'search.c') diff --git a/search.c b/search.c index 62fa1c3..9874e96 100644 --- a/search.c +++ b/search.c @@ -14,7 +14,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: search.c,v 1.13 2008/09/03 04:39:12 canacar Exp $ + * $Id: search.c,v 1.14 2008/09/22 14:15:03 oga Exp $ */ #include "headers.h" @@ -132,7 +132,7 @@ search_print_client(struct menu *mi, int list) flag = '&'; if (list) - cc->matchname = TAILQ_FIRST(&cc->nameq)->name; + cc->matchname = cc->name; snprintf(mi->print, sizeof(mi->print), "%c%s", flag, cc->matchname); -- cgit v1.2.3-2-gb3c3