diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-11-04 17:01:45 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-11-04 17:01:45 +0100 |
commit | 252240a1b1ff587788b46bb28d7db0f89d1aa4aa (patch) | |
tree | 8f9be8fb31dcbc03572f4ea993e7ad5f2ee0e7e0 /src/gui/gui-history.c | |
parent | 11d95fce115f710eb46ade3883de023f1c7d7fcc (diff) | |
download | weechat-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.c | 2 |
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--; } } } |