summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-09-22 17:26:39 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-09-22 17:26:39 +0200
commitf238e5dd422bc70a4283446aff787683f8824250 (patch)
tree48fd7f088e0a3b4ba685832d6d5f2391af581809 /src/gui
parente5bc75bcd4182b8ebe3c3f1b2d7724eedb56a11c (diff)
downloadweechat-f238e5dd422bc70a4283446aff787683f8824250.zip
core: fix display of paste multi-line prompt with a root input bar (bug #34305)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-bar-item.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/gui-bar-item.c b/src/gui/gui-bar-item.c
index a49eefd73..57b64c531 100644
--- a/src/gui/gui-bar-item.c
+++ b/src/gui/gui-bar-item.c
@@ -594,10 +594,7 @@ gui_bar_item_default_input_paste (void *data, struct t_gui_bar_item *item,
(void) data;
(void) item;
- if (!window)
- return NULL;
-
- if (window != gui_current_window)
+ if (window && (window != gui_current_window))
return NULL;
if (!gui_key_paste_pending)