for consistency
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2799
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
do_replace_highlight()
- Use waddch() instead of waddstr() to display a space when we
have a zero-length regex. (DLR)
+ - Rename variable highlight_flag to highlight, for consistency.
+ (DLR)
do_credits()
- Save the keystroke that breaks us out of the credits (if any)
and put it back so that it isn't lost. This is especially
size_t help_line_len(const char *ptr);
void do_help(void);
#endif
-void do_replace_highlight(bool highlight_flag, const char *word);
+void do_replace_highlight(bool highlight, const char *word);
#ifndef NDEBUG
int check_linenumbers(const filestruct *fileptr);
#endif
/* Highlight the current word being replaced or spell checked. We
* expect word to have tabs and control characters expanded. */
-void do_replace_highlight(bool highlight_flag, const char *word)
+void do_replace_highlight(bool highlight, const char *word)
{
size_t y = xplustabs(), word_len = strlenpt(word);
reset_cursor();
- if (highlight_flag)
+ if (highlight)
wattron(edit, A_REVERSE);
#ifdef HAVE_REGEX_H
if (word_len > y)
waddch(edit, '$');
- if (highlight_flag)
+ if (highlight)
wattroff(edit, A_REVERSE);
}