nano

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

commit 21b946e45d626fa9306413650139398af48fd75d
parent 8269ae3ceaf43cc5c1f0dac2064873ca998ee700
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Fri, 10 Nov 2006 20:13:38 +0000

in 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


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3954 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 5+++++
Msrc/winio.c | 4+---
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git 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 @@ -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)