changeset 163:cc1cc49d26f0

Make tab username completion debug messages clearer.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 04 Nov 2010 15:55:37 +0200
parents e59cec397811
children 701c54a45466
files nnchat.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/nnchat.c	Thu Nov 04 14:56:27 2010 +0200
+++ b/nnchat.c	Thu Nov 04 15:55:37 2010 +0200
@@ -767,7 +767,8 @@
     } 
 
     if (optDebug)
-        printMsg("%d, %d <-> %d : '%s' (%d, %d)\n", startPos, endPos, buf->len, pattern, mode, again);
+        printMsg("sPos=%d, ePos=%d <-> bLen=%d : pat='%s' (mode=%d, again=%s)\n",
+                  startPos, endPos, buf->len, pattern, mode, again ? "yes" : "no");
 
     if (pattern) {
         nn_user_t *user = nn_user_match(nnUsers, pattern, previous, again);
@@ -776,7 +777,7 @@
             int i;
             char *c = user->name;
             if (optDebug)
-                printMsg("match '%s' / prev '%s'\n", user->name, previous);
+                printMsg("match='%s' / prev='%s'\n", user->name, previous);
 
             for (i = startPos; i <= endPos; i++)
                 nn_editbuf_delete(buf, startPos);