aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2015-08-28 12:07:28 +0000
committerokan2015-08-28 12:07:28 +0000
commit7d8a5a92b3e6bba227470f31a83772cf42b00fa9 (patch)
tree50af73fd384aa52255d01f570ed73dd56397b8d0
parent07ffeaed1ad42b2ac5e308753808ce031c1b234c (diff)
downloadcwm-7d8a5a92b3e6bba227470f31a83772cf42b00fa9.tar.gz
Lost fix from r1.112; add comment.
Reported (again!) by Peter Kane.
Diffstat (limited to '')
-rw-r--r--kbfunc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 0e514ad..2c2bd68 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: kbfunc.c,v 1.116 2015/08/27 18:40:09 okan Exp $
+ * $OpenBSD: kbfunc.c,v 1.117 2015/08/28 12:07:28 okan Exp $
*/
#include <sys/types.h>
@@ -181,7 +181,8 @@ kbfunc_menu_cmd(struct client_ctx *cc, union arg *arg)
if ((strcmp(cmd->name, "lock") == 0) ||
(strcmp(cmd->name, "term") == 0))
continue;
- menuq_add(&menuq, cmd, NULL);
+ /* search_match_text() needs mi->text */
+ menuq_add(&menuq, cmd, "%s", cmd->name);
}
if ((mi = menu_filter(sc, &menuq, "application", NULL, 0,