diff options
author | okan | 2015-08-28 12:07:28 +0000 |
---|---|---|
committer | okan | 2015-08-28 12:07:28 +0000 |
commit | 7d8a5a92b3e6bba227470f31a83772cf42b00fa9 (patch) | |
tree | 50af73fd384aa52255d01f570ed73dd56397b8d0 /kbfunc.c | |
parent | 07ffeaed1ad42b2ac5e308753808ce031c1b234c (diff) | |
download | cwm-7d8a5a92b3e6bba227470f31a83772cf42b00fa9.tar.gz |
Lost fix from r1.112; add comment.
Reported (again!) by Peter Kane.
Diffstat (limited to 'kbfunc.c')
-rw-r--r-- | kbfunc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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, |