nnn

mirror of https://github.com/jarun/nnn
Log | Files | Refs | README | LICENSE

commit cbeca9e61ec6b4e39c9af261abb1b469e6e1437a
parent fa04879808c89bc8639b778f6d5d8eff9a922820
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Tue, 31 Mar 2026 22:50:10 +0530

Fix #2121: dimming fuzzy matches breaks multi-byte characters

Diffstat:
Msrc/nnn.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -4850,10 +4850,10 @@ static void printent_name(const struct entry *ent, uint_t namecols) for (wchar_t *p = wbuf; *p && col < namecols; ++p, ++col) { if (matched[col]) { attron(match_attrs); - addch(*p); + addnwstr(p, 1); attroff(match_attrs); } else { - addch(*p); + addnwstr(p, 1); } } #else @@ -4878,10 +4878,10 @@ static void printent_name(const struct entry *ent, uint_t namecols) for (wchar_t *p = wbuf; *p && col < namecols; ++p, ++col) { if (matched[col]) { attron(match_attrs); - addch(*p); + addnwstr(p, 1); attroff(match_attrs); } else { - addch(*p); + addnwstr(p, 1); } } #else