# HG changeset patch # User Matti Hamalainen # Date 1288878937 -7200 # Node ID cc1cc49d26f02c3197a9e6151febd6362dbd06ab # Parent e59cec39781119720a85a7e786e7d5911d023969 Make tab username completion debug messages clearer. diff -r e59cec397811 -r cc1cc49d26f0 nnchat.c --- 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);