summaryrefslogtreecommitdiff
path: root/src/gui/gui-history.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-11-04 17:01:45 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-11-04 17:01:45 +0100
commit252240a1b1ff587788b46bb28d7db0f89d1aa4aa (patch)
tree8f9be8fb31dcbc03572f4ea993e7ad5f2ee0e7e0 /src/gui/gui-history.c
parent11d95fce115f710eb46ade3883de023f1c7d7fcc (diff)
downloadweechat-252240a1b1ff587788b46bb28d7db0f89d1aa4aa.zip
core: fix value of buffer variable "num_history" when the value defined in option weechat.history.max_commands is reached
Diffstat (limited to 'src/gui/gui-history.c')
-rw-r--r--src/gui/gui-history.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui-history.c b/src/gui/gui-history.c
index aa0117bd5..ba4c1022f 100644
--- a/src/gui/gui-history.c
+++ b/src/gui/gui-history.c
@@ -88,7 +88,7 @@ gui_history_buffer_add (struct t_gui_buffer *buffer, const char *string)
free (buffer->last_history->text);
free (buffer->last_history);
buffer->last_history = ptr_history;
- buffer->num_history++;
+ buffer->num_history--;
}
}
}