summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-input.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-01-29 14:50:09 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-01-29 14:50:09 +0100
commita8f4f0c66d37f9fcbcd223065a9b82834660abcc (patch)
treecf75070f5c6a13d930fd287ab2f7642dc63198d1 /src/gui/curses/gui-curses-input.c
parent498dbc92436aa3deace8ec8b2ea6dcf109fce8c8 (diff)
downloadweechat-a8f4f0c66d37f9fcbcd223065a9b82834660abcc.zip
Reduced number of screen refreshs, fixed display bug with title bar
Diffstat (limited to 'src/gui/curses/gui-curses-input.c')
-rw-r--r--src/gui/curses/gui-curses-input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-input.c b/src/gui/curses/gui-curses-input.c
index 2a1c885f2..9787f4cb8 100644
--- a/src/gui/curses/gui-curses-input.c
+++ b/src/gui/curses/gui-curses-input.c
@@ -351,14 +351,14 @@ gui_input_draw (struct t_gui_buffer *buffer, int erase)
gui_window_set_weechat_color (GUI_CURSES(ptr_win)->win_input,
GUI_COLOR_INPUT);
- snprintf (format, 32, "%%-%ds",
+ snprintf (format, sizeof (format), "%%-%ds",
ptr_win->win_input_width - prompt_length);
offset_cursor = 0;
if (ptr_win == gui_current_window)
offset_cursor = gui_input_draw_text (ptr_win,
ptr_win->win_input_width - prompt_length);
else
- wprintw (GUI_CURSES(ptr_win)->win_input, format, "");
+ wprintw (GUI_CURSES(ptr_win)->win_input, format, " ");
wclrtoeol (GUI_CURSES(ptr_win)->win_input);
ptr_win->win_input_cursor_x = prompt_length + offset_cursor;
if (ptr_win == gui_current_window)