]> git.wh0rd.org Git - nano.git/commitdiff
and wrap the zero-length regex displaying code in a HAVE_REGEX_H #define
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 24 Dec 2003 08:29:49 +0000 (08:29 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 24 Dec 2003 08:29:49 +0000 (08:29 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1602 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/winio.c

index a1a933e3ac46c009b30387dbd44203be393e04e5..eda5e5ac49732549c588b0095ef5753f518d8ee3 100644 (file)
@@ -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)