* src/winio.c (do_replace_highlight): Rename this to 'spotlight',
for clarity, and for contrast with 'do_replace/do_replace_loop'.
* src/winio.c (spotlight): Rename a variable for clarity.
+ * src/files.c (input_tab), src/prompt.c (get_prompt_string):
+ Rename a variable to better indicate booleanness.
2016-03-29 Benno Schulenberg <bensberg@justemail.net>
* src/nano.c (main), src/text.c (do_justify, do_verbatim_input),
* position should be advanced. refresh_func is the function we will
* call to refresh the edit window. */
char *input_tab(char *buf, bool allow_files, size_t *place, bool
- *lastwastab, void (*refresh_func)(void), bool *list)
+ *lastwastab, void (*refresh_func)(void), bool *listed)
{
size_t num_matches = 0, buf_len;
char **matches = NULL;
assert(buf != NULL && place != NULL && *place <= strlen(buf) &&
- lastwastab != NULL && refresh_func != NULL && list != NULL);
+ lastwastab != NULL && refresh_func != NULL && listed != NULL);
- *list = FALSE;
+ *listed = FALSE;
/* If the word starts with `~' and there is no slash in the word,
* then try completing this word as a username. */
}
wnoutrefresh(edit);
- *list = TRUE;
+ *listed = TRUE;
}
free(mzero);
/* Only refresh the edit window if we don't have a list of filename
* matches on it. */
- if (!*list)
+ if (!*listed)
refresh_func();
return buf;
/* Get a string of input at the statusbar prompt. */
functionptrtype get_prompt_string(int *actual, bool allow_tabs,
#ifndef DISABLE_TABCOMP
- bool allow_files,
- bool *list,
+ bool allow_files, bool *listed,
#endif
const char *curranswer,
#ifndef DISABLE_HISTORIES
#endif
if (allow_tabs)
answer = input_tab(answer, allow_files, &statusbar_x,
- &tabbed, refresh_func, list);
+ &tabbed, refresh_func, listed);
update_the_statusbar();
} else
int retval;
functionptrtype func;
#ifndef DISABLE_TABCOMP
- bool list = FALSE;
+ bool listed = FALSE;
#endif
prompt = charalloc(((COLS - 4) * mb_cur_max()) + 1);
func = get_prompt_string(&retval, allow_tabs,
#ifndef DISABLE_TABCOMP
- allow_files,
- &list,
+ allow_files, &listed,
#endif
curranswer,
#ifndef DISABLE_HISTORIES
/* If we've done tab completion, there might be a list of filename
* matches on the edit window at this point. Make sure that they're
* cleared off. */
- if (list)
+ if (listed)
refresh_func();
#endif
char **cwd_tab_completion(const char *buf, bool allow_files, size_t
*num_matches, size_t buf_len);
char *input_tab(char *buf, bool allow_files, size_t *place, bool
- *lastwastab, void (*refresh_func)(void), bool *list);
+ *lastwastab, void (*refresh_func)(void), bool *listed);
#endif
const char *tail(const char *foo);
#ifndef DISABLE_HISTORIES
void update_bar_if_needed(void);
functionptrtype get_prompt_string(int *value, bool allow_tabs,
#ifndef DISABLE_TABCOMP
- bool allow_files,
- bool *list,
+ bool allow_files, bool *listed,
#endif
const char *curranswer,
#ifndef DISABLE_HISTORIES