summaryrefslogtreecommitdiff
path: root/testing/toxic/windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/toxic/windows.c')
-rw-r--r--testing/toxic/windows.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/toxic/windows.c b/testing/toxic/windows.c
index d19392ac..aab46e99 100644
--- a/testing/toxic/windows.c
+++ b/testing/toxic/windows.c
@@ -159,7 +159,7 @@ void init_window_status()
159 WINDOW_STATUS[j] = -1; 159 WINDOW_STATUS[j] = -1;
160} 160}
161 161
162ToxWindow * init_windows() 162ToxWindow *init_windows()
163{ 163{
164 w_num = 0; 164 w_num = 0;
165 int n_prompt = 0; 165 int n_prompt = 0;
@@ -170,6 +170,7 @@ ToxWindow * init_windows()
170 endwin(); 170 endwin();
171 exit(1); 171 exit(1);
172 } 172 }
173 active_window = n_prompt;
173 prompt = &windows[n_prompt]; 174 prompt = &windows[n_prompt];
174 return prompt; 175 return prompt;
175} 176}
@@ -217,7 +218,7 @@ void prepare_window(WINDOW *w)
217 wresize(w, LINES-2, COLS); 218 wresize(w, LINES-2, COLS);
218} 219}
219 220
220void draw_active_window(Messenger * m) 221void draw_active_window(Messenger *m)
221{ 222{
222 223
223 ToxWindow *a = &windows[active_window]; 224 ToxWindow *a = &windows[active_window];