aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
authoroga2008-09-22 14:15:03 +0000
committeroga2008-09-22 14:15:03 +0000
commit30fdb32a9e9467d23ad79e6602ac5b30e47e21f1 (patch)
tree8c84be05c3779e1b7d776219dcd1d330f7e5d549 /search.c
parent0cac11a31570d71936c55c2244a78de34ea4c5a8 (diff)
downloadcwm-30fdb32a9e9467d23ad79e6602ac5b30e47e21f1.tar.gz
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!
Diffstat (limited to '')
-rw-r--r--search.c4
1 files changed, 2 insertions, 2 deletions
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);