Commit 7bde0539 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

in do_replace_highlight(), rename variable highlight_flag to highlight,

for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2799 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 6 additions and 4 deletions
+6 -4
...@@ -390,6 +390,8 @@ CVS code - ...@@ -390,6 +390,8 @@ CVS code -
do_replace_highlight() do_replace_highlight()
- Use waddch() instead of waddstr() to display a space when we - Use waddch() instead of waddstr() to display a space when we
have a zero-length regex. (DLR) have a zero-length regex. (DLR)
- Rename variable highlight_flag to highlight, for consistency.
(DLR)
do_credits() do_credits()
- Save the keystroke that breaks us out of the credits (if any) - 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 and put it back so that it isn't lost. This is especially
......
...@@ -701,7 +701,7 @@ void do_cursorpos_void(void); ...@@ -701,7 +701,7 @@ void do_cursorpos_void(void);
size_t help_line_len(const char *ptr); size_t help_line_len(const char *ptr);
void do_help(void); void do_help(void);
#endif #endif
void do_replace_highlight(bool highlight_flag, const char *word); void do_replace_highlight(bool highlight, const char *word);
#ifndef NDEBUG #ifndef NDEBUG
int check_linenumbers(const filestruct *fileptr); int check_linenumbers(const filestruct *fileptr);
#endif #endif
......
...@@ -3982,7 +3982,7 @@ void do_help(void) ...@@ -3982,7 +3982,7 @@ void do_help(void)
/* Highlight the current word being replaced or spell checked. We /* Highlight the current word being replaced or spell checked. We
* expect word to have tabs and control characters expanded. */ * 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); size_t y = xplustabs(), word_len = strlenpt(word);
...@@ -3997,7 +3997,7 @@ void do_replace_highlight(bool highlight_flag, const char *word) ...@@ -3997,7 +3997,7 @@ void do_replace_highlight(bool highlight_flag, const char *word)
reset_cursor(); reset_cursor();
if (highlight_flag) if (highlight)
wattron(edit, A_REVERSE); wattron(edit, A_REVERSE);
#ifdef HAVE_REGEX_H #ifdef HAVE_REGEX_H
...@@ -4011,7 +4011,7 @@ void do_replace_highlight(bool highlight_flag, const char *word) ...@@ -4011,7 +4011,7 @@ void do_replace_highlight(bool highlight_flag, const char *word)
if (word_len > y) if (word_len > y)
waddch(edit, '$'); waddch(edit, '$');
if (highlight_flag) if (highlight)
wattroff(edit, A_REVERSE); wattroff(edit, A_REVERSE);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment