# HG changeset patch # User Matti Hamalainen # Date 1289866012 -7200 # Node ID ff3688e747c37420667882f1e08193690ab80a9f # Parent 73bdf1ede3487d1765c354aa57c0a72806f80147 Add a nasty hack to draw edit line correctly after startup... still a mystery why the windows get fucked up temporarily. Something printing to stderr/out? diff -r 73bdf1ede348 -r ff3688e747c3 nnchat.c --- a/nnchat.c Tue Nov 16 00:57:59 2010 +0200 +++ b/nnchat.c Tue Nov 16 02:06:52 2010 +0200 @@ -817,6 +817,7 @@ nn_editbuf_t *editBuf = nn_editbuf_new(NN_TMPBUF_SIZE); nn_editbuf_t *histBuf[SET_MAX_HISTORY+2]; int histPos = 0, histMax = 0; + BOOL first = TRUE; cfgitem_t *tmpcfg; char *homeDir = NULL; @@ -1218,10 +1219,11 @@ } } while (c != ERR && !exitProg && ++cnt < 10); - if (update) { + if (update || first) { /* Update edit line */ printEditBuf(setPrvMode ? setTarget : "", editBuf); updateStatus(insertMode); + first = FALSE; /* a nasty hack ... */ } } /* !optDaemon */