aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--README.adoc2
m---------liberty0
-rw-r--r--nncmpp.c2
4 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 73e2b1b..12dcfca 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,8 @@ Unreleased
* Added ability to configure bindable user-defined actions;
these can launch arbitrary shell commands
+ * Prevented crashes when the daemon disconnects during search
+
* X11: added support for font fallbacks to the editor as well
diff --git a/README.adoc b/README.adoc
index 1a0f199..775c5a3 100644
--- a/README.adoc
+++ b/README.adoc
@@ -33,6 +33,8 @@ You can get a package with the latest development version using Arch Linux's
https://aur.archlinux.org/packages/nncmpp-git[AUR],
or as a https://git.janouch.name/p/nixexprs[Nix derivation].
+Stable versions are present in: OpenBSD ports.
+
Documentation
-------------
See the link:nncmpp.adoc[man page] for information about usage.
diff --git a/liberty b/liberty
-Subproject 75fc6f1c374796f9e794297c3893089009b8772
+Subproject 017cb1d5702a32603810545cd74c1da65e35d12
diff --git a/nncmpp.c b/nncmpp.c
index 08c5499..8f17d8d 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -3785,6 +3785,8 @@ static void
search_on_changed (void)
{
struct mpd_client *c = &g.client;
+ if (c->state != MPD_CONNECTED)
+ return;
size_t len;
char *u8 = (char *) u32_to_u8 (g.editor.line, g.editor.len + 1, NULL, &len);