aboutsummaryrefslogtreecommitdiff
path: root/src/ui/chat_open_dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/chat_open_dialog.c')
-rw-r--r--src/ui/chat_open_dialog.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/ui/chat_open_dialog.c b/src/ui/chat_open_dialog.c
index 180d7be..701b8e5 100644
--- a/src/ui/chat_open_dialog.c
+++ b/src/ui/chat_open_dialog.c
@@ -114,9 +114,14 @@ chat_open_dialog_print(UI_CHAT_OPEN_DIALOG_Handle *open_dialog,
114 if (!(open_dialog->window)) 114 if (!(open_dialog->window))
115 return; 115 return;
116 116
117 werase(open_dialog->window); 117 WINDOW *window = *(open_dialog->window);
118 wmove(open_dialog->window, 0, 0);
119 118
120 wprintw(open_dialog->window, "%s", open_dialog->topic); 119 werase(window);
121 wmove(open_dialog->window, 0, open_dialog->topic_pos); 120 wmove(window, 0, 0);
121
122 wprintw(window, "%s", open_dialog->topic);
123 wmove(window, 0, open_dialog->topic_pos);
124
125 wcursyncup(window);
126 curs_set(1);
122} 127}