diff ui.c @ 571:3ae357fd34bb

Rename quit-related internal variables.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 13 Dec 2012 15:49:43 +0200
parents afb4caf32bdf
children 414d11df07ce
line wrap: on
line diff
--- a/ui.c	Tue Dec 11 13:50:19 2012 +0200
+++ b/ui.c	Thu Dec 13 15:49:43 2012 +0200
@@ -10,7 +10,7 @@
 nn_window_t *chatWindows[SET_MAX_WINDOWS],
             *currWin = NULL;
 
-BOOL    cursesInit = FALSE;
+BOOL    appCursesInit = FALSE, appQuitFlag = FALSE;
 int     cursorVisible = ERR,
         scrWidth, scrHeight;
 
@@ -109,7 +109,7 @@
         init_pair(16, COLOR_CYAN,    COLOR_RED);
     }
 
-    cursesInit = TRUE;
+    appCursesInit = TRUE;
     nnwin_reset();
 
 #ifdef PDCURSES
@@ -132,7 +132,7 @@
     for (i = 0; i < SET_MAX_WINDOWS; i++)
         nn_window_free(chatWindows[i]);
 
-    if (cursesInit)
+    if (appCursesInit)
     {
         if (cursorVisible != ERR)
             curs_set(cursorVisible);
@@ -431,7 +431,7 @@
     wmove(stdscr, sy, sx);
 
     // Update editbuf if needed
-    if (cursesInit && ebuf != NULL && (force || ebuf->dirty))
+    if (appCursesInit && ebuf != NULL && (force || ebuf->dirty))
     {
         int yoffs = ebuf->pos / scrWidth,
             xoffs = ebuf->pos % scrWidth;
@@ -664,7 +664,7 @@
     char *res;
 
     editState->done = FALSE;
-    while (!editState->isError && !editState->exitProg && !editState->done)
+    while (!editState->isError && !appQuitFlag && !editState->done)
     {
         nnwin_input_process(editBuf, editState, callback);
         update(editBuf, editState);