From 22f38ebde4d197db893ec2020f5e6ba63cc35937 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 17 Apr 2010 12:57:06 +0200 Subject: [PATCH] clear current_match when dropping state --- src/cmdparse.y | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmdparse.y b/src/cmdparse.y index f588ad1a..acac73e2 100644 --- a/src/cmdparse.y +++ b/src/cmdparse.y @@ -132,6 +132,7 @@ commands: /* empty */ TAILQ_REMOVE(&owindows, current, owindows); free(current); } + memset(¤t_match, 0, sizeof(Match)); } ; -- 2.39.5