resetstatuspos should be a bool, not an int

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1947 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2004-09-28 15:58:56 +00:00
parent 1e7297116b
commit 9b6e476a46
3 changed files with 9 additions and 9 deletions

View File

@ -93,7 +93,7 @@ size_t quotelen; /* strlen(quotestr) */
char *backup_dir = NULL; /* Backup directory. */ char *backup_dir = NULL; /* Backup directory. */
#endif #endif
int resetstatuspos; /* Hack for resetting the status bar bool resetstatuspos; /* Hack for resetting the status bar
cursor position */ cursor position */
char *answer = NULL; /* Answer str to many questions */ char *answer = NULL; /* Answer str to many questions */
int totlines = 0; /* Total number of lines in the file */ int totlines = 0; /* Total number of lines in the file */

View File

@ -82,7 +82,7 @@ extern char *full_operating_dir;
extern char *alt_speller; extern char *alt_speller;
#endif #endif
extern int resetstatuspos; extern bool resetstatuspos;
extern struct stat fileinfo; extern struct stat fileinfo;
extern filestruct *current, *fileage, *edittop, *filebot; extern filestruct *current, *fileage, *edittop, *filebot;
extern filestruct *cutbuffer; extern filestruct *cutbuffer;

View File

@ -3011,42 +3011,42 @@ int statusq(int allowtabs, const shortcut *s, const char *def,
#endif #endif
); );
free(foo); free(foo);
resetstatuspos = 0; resetstatuspos = FALSE;
switch (ret) { switch (ret) {
case NANO_FIRSTLINE_KEY: case NANO_FIRSTLINE_KEY:
case NANO_FIRSTLINE_FKEY: case NANO_FIRSTLINE_FKEY:
do_first_line(); do_first_line();
resetstatuspos = 1; resetstatuspos = TRUE;
break; break;
case NANO_LASTLINE_KEY: case NANO_LASTLINE_KEY:
case NANO_LASTLINE_FKEY: case NANO_LASTLINE_FKEY:
do_last_line(); do_last_line();
resetstatuspos = 1; resetstatuspos = TRUE;
break; break;
#ifndef DISABLE_JUSTIFY #ifndef DISABLE_JUSTIFY
case NANO_PARABEGIN_KEY: case NANO_PARABEGIN_KEY:
case NANO_PARABEGIN_ALTKEY1: case NANO_PARABEGIN_ALTKEY1:
case NANO_PARABEGIN_ALTKEY2: case NANO_PARABEGIN_ALTKEY2:
do_para_begin(); do_para_begin();
resetstatuspos = 1; resetstatuspos = TRUE;
break; break;
case NANO_PARAEND_KEY: case NANO_PARAEND_KEY:
case NANO_PARAEND_ALTKEY1: case NANO_PARAEND_ALTKEY1:
case NANO_PARAEND_ALTKEY2: case NANO_PARAEND_ALTKEY2:
do_para_end(); do_para_end();
resetstatuspos = 1; resetstatuspos = TRUE;
break; break;
case NANO_FULLJUSTIFY_KEY: case NANO_FULLJUSTIFY_KEY:
case NANO_FULLJUSTIFY_ALTKEY: case NANO_FULLJUSTIFY_ALTKEY:
if (!ISSET(VIEW_MODE)) if (!ISSET(VIEW_MODE))
do_full_justify(); do_full_justify();
resetstatuspos = 1; resetstatuspos = TRUE;
break; break;
#endif #endif
case NANO_CANCEL_KEY: case NANO_CANCEL_KEY:
ret = -1; ret = -1;
resetstatuspos = 1; resetstatuspos = TRUE;
break; break;
} }
blank_statusbar(); blank_statusbar();