aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.mk2
-rw-r--r--dmenu.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.mk b/config.mk
index 03f1670..70c9e36 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
1# dmenu version 1# dmenu version
2VERSION = 4.3 2VERSION = 4.3.1
3 3
4# paths 4# paths
5PREFIX = /usr/local 5PREFIX = /usr/local
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) {
219 if(n > 0) 219 if(n > 0)
220 memcpy(&text[cursor], str, n); 220 memcpy(&text[cursor], str, n);
221 cursor += n; 221 cursor += n;
222 match(n > 0); 222 match(n > 0 && text[cursor] == '\0');
223} 223}
224 224
225void 225void