/* if we haven't found a match, use the override string */
if (colorstrings == NULL && syntaxstr != NULL) {
- for (tmpsyntax = syntaxes; tmpsyntax != NULL;
+ for (tmpsyntax = syntaxes; tmpsyntax != NULL;
tmpsyntax = tmpsyntax->next) {
if (!strcasecmp(tmpsyntax->desc, syntaxstr))
colorstrings = tmpsyntax->color;
case NANO_PREVPAGE_FKEY:
case '-': /* Pico compatibility */
if (selected >= (editwinrows + lineno % editwinrows) * width)
- selected -= (editwinrows + lineno % editwinrows) * width;
+ selected -= (editwinrows + lineno % editwinrows) * width;
else
selected = 0;
break;
#ifdef HAVE_REGEX_H
extern regex_t search_regexp;
-extern regmatch_t regmatches[10];
+extern regmatch_t regmatches[10];
#ifdef ENABLE_COLOR
extern regex_t syntaxfile_regexp;
-extern regmatch_t synfilematches[1];
+extern regmatch_t synfilematches[1];
#endif /* ENABLE_COLOR */
#endif /* HAVE_REGEX_H */
char *get_history_completion(historyheadtype *h, char *s);
void free_history(historyheadtype *h);
#ifdef ENABLE_NANORC
-void load_history(void);
+void load_history(void);
void save_history(void);
#endif
#endif
/* Original start line reached. */
if (fileptr == begin)
- search_last_line = 1;
+ search_last_line = TRUE;
rev_start = fileptr->data;
#ifndef NANO_SMALL
if (ISSET(REVERSE_SEARCH))
update_history(&search_history, answer);
#endif
- search_last_line = 0;
+ search_last_line = FALSE;
didfind = findnextstr(TRUE, FALSE, current, current_x, answer, FALSE);
edit_refresh();
placewewant = xplustabs();
return -1;
#endif
- search_last_line = 0;
+ search_last_line = FALSE;
didfind = findnextstr(TRUE, FALSE, current, current_x, last_search, FALSE);
edit_refresh();
placewewant = xplustabs();
/* We constructed regexp_pat to be a valid expression. */
assert(regexp_compiled);
- search_last_line = 0;
+ search_last_line = FALSE;
while (TRUE) {
if (findnextstr(FALSE, FALSE, current, current_x, regexp_pat, FALSE) != 0) {
/* Found identical bracket. */