summaryrefslogtreecommitdiff
path: root/src/plugins/xfer/xfer-buffer.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-05-06 18:34:04 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-05-06 18:34:04 +0200
commitaea2a0e31aa53c2d491418e9816571489c6e0af9 (patch)
tree85092e528b3c33c0f4e812767e8ea93dff529d34 /src/plugins/xfer/xfer-buffer.c
parent5689970cb1db504aa6a9bda901f7861e4a6d9fc4 (diff)
downloadweechat-aea2a0e31aa53c2d491418e9816571489c6e0af9.zip
Do not automatically switch to xfer buffer, except by /xfer command
Diffstat (limited to 'src/plugins/xfer/xfer-buffer.c')
-rw-r--r--src/plugins/xfer/xfer-buffer.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/xfer/xfer-buffer.c b/src/plugins/xfer/xfer-buffer.c
index dd32ca0b0..2219c6e22 100644
--- a/src/plugins/xfer/xfer-buffer.c
+++ b/src/plugins/xfer/xfer-buffer.c
@@ -60,6 +60,8 @@ xfer_buffer_refresh (char *hotlist)
{
snprintf (str_color, sizeof (str_color),
"%s,%s",
+ (line == xfer_buffer_selected_line) ?
+ weechat_config_string (xfer_config_color_text_selected) :
weechat_config_string (xfer_config_color_text),
weechat_config_string (xfer_config_color_text_bg));
@@ -229,7 +231,6 @@ xfer_buffer_input_cb (void *data, struct t_gui_buffer *buffer,
/* make C compiler happy */
(void) data;
- (void) buffer;
xfer = xfer_search_by_number (xfer_buffer_selected_line);
@@ -273,6 +274,10 @@ xfer_buffer_input_cb (void *data, struct t_gui_buffer *buffer,
xfer_buffer_refresh (WEECHAT_HOTLIST_MESSAGE);
}
}
+ else if (weechat_strcasecmp (input_data, "q") == 0)
+ {
+ weechat_buffer_close (buffer, 1);
+ }
return WEECHAT_RC_OK;
}
@@ -314,6 +319,5 @@ xfer_buffer_open ()
weechat_buffer_set (xfer_buffer, "title", _("Xfer list"));
weechat_buffer_set (xfer_buffer, "key_bind_meta2-A", "/xfer up");
weechat_buffer_set (xfer_buffer, "key_bind_meta2-B", "/xfer down");
- weechat_buffer_set (xfer_buffer, "display", "1");
}
}