changeset 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 cbbf502e4a70
files ui.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ui.c	Sun May 27 11:45:51 2012 +0300
+++ b/ui.c	Sun May 27 11:46:41 2012 +0300
@@ -243,8 +243,10 @@
 void nnwin_update_editbuf(nn_editbuf_t *buf)
 {
     char *tmp;
-    if (editWin == NULL || buf == NULL) return;
+    if (editWin == NULL || buf == NULL || !buf->dirty)
+        return;
 
+    buf->dirty = FALSE;
     buf->data[buf->len] = 0;
     tmp = nn_username_decode(th_strdup(buf->data));