summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-18 21:09:03 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-10-18 21:09:03 +0200
commit9928eca27443baeabbd30e5bb188f6c1ce447a2a (patch)
treedca605d60cb29ce3e9da044ada4fd1f83a8c95fc
parent6c2ae2f6bb57554e0d153f5bf8b246dfefef162b (diff)
downloadnncmpp-9928eca27443baeabbd30e5bb188f6c1ce447a2a.tar.gz
nncmpp-9928eca27443baeabbd30e5bb188f6c1ce447a2a.tar.xz
nncmpp-9928eca27443baeabbd30e5bb188f6c1ce447a2a.zip
Add a comment and update another one
-rw-r--r--nncmpp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nncmpp.c b/nncmpp.c
index 859f292..c57fe84 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -82,6 +82,9 @@ enum
// ncurses is notoriously retarded for input handling, we need something
// different if only to receive mouse events reliably.
+//
+// 2020 update: ncurses is mostly reliable now but rxvt-unicode needs to start
+// supporting 1006, or ncurses needs to start supporting the 1015 mode.
#include "termo.h"
@@ -3360,6 +3363,7 @@ mpd_read_time (const char *value, int *sec, int *optional_msec)
unsigned long n = strtoul (period + 1, &end, 10);
if (*end)
return;
+ // XXX: this relies on three decimal places
*optional_msec = MIN (INT_MAX, n);
}
unsigned long n = strtoul (value, &end, 10);