nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 2a4ab6d29d47b4f39245dd44f7178283e0d031b3
parent 76c4b33ef486f7f82a2679a504a9e58b27bdbdea
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Wed, 24 Dec 2003 08:29:49 +0000

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

Diffstat:
Msrc/winio.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -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)