mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 02:03:13 +02:00
core: disable paste detection and confirmation if bar item "input_paste" is not used in a visible bar (task #12327)
This commit is contained in:
committed by
Sebastien Helleu
parent
dd99a1cf2c
commit
03cbb1c8f6
+2
-1
@@ -1842,7 +1842,8 @@ gui_bar_create_default_input ()
|
||||
char *buf;
|
||||
|
||||
/* search an input_text item */
|
||||
if (!gui_bar_item_used_in_at_least_one_bar (gui_bar_item_names[GUI_BAR_ITEM_INPUT_TEXT], 1))
|
||||
if (!gui_bar_item_used_in_at_least_one_bar (gui_bar_item_names[GUI_BAR_ITEM_INPUT_TEXT],
|
||||
1, 0))
|
||||
{
|
||||
ptr_bar = gui_bar_search (GUI_BAR_DEFAULT_NAME_INPUT);
|
||||
if (ptr_bar)
|
||||
|
||||
Reference in New Issue
Block a user