diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/gui-buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index d5fa56a9e..20e50c87a 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -266,7 +266,11 @@ gui_buffer_local_var_add (struct t_gui_buffer *buffer, const char *name, return; ptr_value = hashtable_get (buffer->local_variables, name); + if (string_strcmp (ptr_value, value) == 0) + return; + hashtable_set (buffer->local_variables, name, value); + (void) gui_buffer_send_signal ( buffer, (ptr_value) ? "buffer_localvar_changed" : "buffer_localvar_added", |