diff --git a/ChangeLog b/ChangeLog index aedd2a112a5e4d4799b6b24bc5d84b9a6b7426f8..d2d69d210d2d30d99436809ef52bfaaeb1322001 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,11 @@ CVS code - overwriting an existing file when in restricted mode. (DLR) - Fix problem where a file could sometimes be overwritten without a warning prompt. (DLR) +- winio.c: + do_replace_highlight() + - Include the code to display zero-length matches even when + regex.h isn't found, as it can also be used to display + zero-length Unicode characters. (DLR) - doc/rnano.1, doc/fr/rnano.1: - Add missing "(C)" to the copyright notice in the comments. (DLR) diff --git a/src/winio.c b/src/winio.c index 05bc84dbeb03d30313cffbbeaf9629c135e6b348..a3194557dbb44e61cc45f7bb11fdd5bb0f98e62c 100644 --- a/src/winio.c +++ b/src/winio.c @@ -3124,12 +3124,10 @@ void do_replace_highlight(bool highlight, const char *word) if (highlight) wattron(edit, reverse_attr); -#ifdef HAVE_REGEX_H - /* This is so we can show zero-length regex matches. */ + /* This is so we can show zero-length matches. */ if (word_len == 0) waddch(edit, ' '); else -#endif waddnstr(edit, word, actual_x(word, y)); if (word_len > y)