summaryrefslogtreecommitdiff
path: root/src/gui/gui-window.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-08-14 13:20:03 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-08-14 13:20:03 +0200
commitcc3a4834d02feef08cb413d8fb37f18369bb432b (patch)
tree8e49ebdc2c35bb18d77d687e177e5506415a88de /src/gui/gui-window.c
parent1cb7c6a6c5ef1ffd647779f41806a4be7f557622 (diff)
downloadweechat-cc3a4834d02feef08cb413d8fb37f18369bb432b.zip
core: allow empty short name on buffers (name is used if not set)
Diffstat (limited to 'src/gui/gui-window.c')
-rw-r--r--src/gui/gui-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui-window.c b/src/gui/gui-window.c
index e6e757bf0..1daaf5699 100644
--- a/src/gui/gui-window.c
+++ b/src/gui/gui-window.c
@@ -190,7 +190,7 @@ gui_window_get_context_at_xy (struct t_gui_window *window,
else if ((win_x >= window->coords[win_y].buffer_x1)
&& (win_x <= window->coords[win_y].buffer_x2))
{
- *word = gui_color_decode ((*line)->data->buffer->short_name, NULL);
+ *word = gui_color_decode (gui_buffer_get_short_name ((*line)->data->buffer), NULL);
}
else if ((win_x >= window->coords[win_y].prefix_x1)
&& (win_x <= window->coords[win_y].prefix_x2))