summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-bar-window.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-07-14 08:20:40 +0200
committerSebastien Helleu <flashcode@flashtux.org>2009-07-14 08:20:40 +0200
commit57064f4b1c9373a9e1c734e4c8e9104fec42be55 (patch)
tree2a3b83541cc437853036bb37304e200ed9ab7a87 /src/gui/curses/gui-curses-bar-window.c
parent9839d030a1e0f2d8fde0c6ff904e176696fccbc1 (diff)
downloadweechat-57064f4b1c9373a9e1c734e4c8e9104fec42be55.zip
Allow cursor to be displayed in a root bar
Diffstat (limited to 'src/gui/curses/gui-curses-bar-window.c')
-rw-r--r--src/gui/curses/gui-curses-bar-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/curses/gui-curses-bar-window.c b/src/gui/curses/gui-curses-bar-window.c
index 85342c8a2..768a00d9e 100644
--- a/src/gui/curses/gui-curses-bar-window.c
+++ b/src/gui/curses/gui-curses-bar-window.c
@@ -607,7 +607,7 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window,
/* move cursor if it was asked in an item content (input_text does that
to move cursor in user input text) */
- if (window && (gui_current_window == window)
+ if ((!window || (gui_current_window == window))
&& (bar_window->cursor_x >= 0) && (bar_window->cursor_y >= 0))
{
move (bar_window->cursor_y, bar_window->cursor_x);