comparison ui.c @ 496:012f106bf290

Check editbuf dirty flag in editline update.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 27 May 2012 11:46:41 +0300
parents f8fc6d18bcdb
children ca88945d8eda
comparison
equal deleted inserted replaced
495:f8fc6d18bcdb 496:012f106bf290
241 241
242 242
243 void nnwin_update_editbuf(nn_editbuf_t *buf) 243 void nnwin_update_editbuf(nn_editbuf_t *buf)
244 { 244 {
245 char *tmp; 245 char *tmp;
246 if (editWin == NULL || buf == NULL) return; 246 if (editWin == NULL || buf == NULL || !buf->dirty)
247 247 return;
248
249 buf->dirty = FALSE;
248 buf->data[buf->len] = 0; 250 buf->data[buf->len] = 0;
249 tmp = nn_username_decode(th_strdup(buf->data)); 251 tmp = nn_username_decode(th_strdup(buf->data));
250 252
251 werase(editWin); 253 werase(editWin);
252 254