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-d3aeb78583b8master
parent
76c4b33ef4
commit
2a4ab6d29d
|
@ -2236,10 +2236,12 @@ void do_replace_highlight(int highlight_flag, const char *word)
|
||||||
if (highlight_flag)
|
if (highlight_flag)
|
||||||
wattron(edit, A_REVERSE);
|
wattron(edit, A_REVERSE);
|
||||||
|
|
||||||
|
#ifdef HAVE_REGEX_H
|
||||||
/* This is so we can show zero-length regexes. */
|
/* This is so we can show zero-length regexes. */
|
||||||
if (word_len == 0)
|
if (word_len == 0)
|
||||||
waddstr(edit, " ");
|
waddstr(edit, " ");
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
waddnstr(edit, word, y - 1);
|
waddnstr(edit, word, y - 1);
|
||||||
|
|
||||||
if (word_len > y)
|
if (word_len > y)
|
||||||
|
|
Loading…
Reference in New Issue