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. */
#endif
int resetstatuspos; /* Hack for resetting the status bar
bool resetstatuspos; /* Hack for resetting the status bar
cursor position */
char *answer = NULL; /* Answer str to many questions */
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;
#endif
extern int resetstatuspos;
extern bool resetstatuspos;
extern struct stat fileinfo;
extern filestruct *current, *fileage, *edittop, *filebot;
extern filestruct *cutbuffer;

View File

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