From 2103ae289197037dbce41d9c0284d08dd8aa6876 Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Wed, 18 May 2011 17:01:44 +0100 Subject: bugfix --- dmenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dmenu.c') diff --git a/dmenu.c b/dmenu.c index da62705..8acf057 100644 --- a/dmenu.c +++ b/dmenu.c @@ -219,7 +219,7 @@ insert(const char *str, ssize_t n) { if(n > 0) memcpy(&text[cursor], str, n); cursor += n; - match(n > 0); + match(n > 0 && text[cursor] == '\0'); } void -- cgit v1.2.3-13-gbd6f