Commit 2a4ab6d2 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

and wrap the zero-length regex displaying code in a HAVE_REGEX_H #define

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1602 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 2 additions and 0 deletions
+2 -0
......@@ -2236,10 +2236,12 @@ void do_replace_highlight(int highlight_flag, const char *word)
if (highlight_flag)
wattron(edit, A_REVERSE);
#ifdef HAVE_REGEX_H
/* This is so we can show zero-length regexes. */
if (word_len == 0)
waddstr(edit, " ");
else
#endif
waddnstr(edit, word, y - 1);
if (word_len > y)
......
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