mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 13:26:38 +02:00
Fix bug with scroll in bars: do not scroll if bar is hidden
This commit is contained in:
@@ -2105,6 +2105,12 @@ gui_bar_scroll (struct t_gui_bar *bar, struct t_gui_buffer *buffer,
|
||||
char *str, *error;
|
||||
int length, add_x, add, percent, scroll_beginning, scroll_end;
|
||||
|
||||
if (!bar)
|
||||
return 0;
|
||||
|
||||
if (CONFIG_BOOLEAN(bar->options[GUI_BAR_OPTION_HIDDEN]))
|
||||
return 1;
|
||||
|
||||
add_x = 0;
|
||||
str = NULL;
|
||||
number = 0;
|
||||
|
||||
Reference in New Issue
Block a user