diff options
author | Jfreegman <Jfreegman@gmail.com> | 2013-08-14 16:02:21 -0400 |
---|---|---|
committer | Jfreegman <Jfreegman@gmail.com> | 2013-08-14 16:02:21 -0400 |
commit | aa114d2778f87180eaf946f2fd3113c53d2304bc (patch) | |
tree | 4054de9a21111d58994c5f043d13ee9dba345464 /testing/toxic/windows.c | |
parent | f5d7d458ffbe609ff5ff4d23afdcf84efeb32ed3 (diff) |
small bug fixes
Diffstat (limited to 'testing/toxic/windows.c')
-rw-r--r-- | testing/toxic/windows.c | 5 |
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 | ||
162 | ToxWindow * init_windows() | 162 | ToxWindow *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 | ||
220 | void draw_active_window(Messenger * m) | 221 | void draw_active_window(Messenger *m) |
221 | { | 222 | { |
222 | 223 | ||
223 | ToxWindow *a = &windows[active_window]; | 224 | ToxWindow *a = &windows[active_window]; |