nano

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

commit 18a4658d4f307d8f8201afb90e30363fba3f362d
parent 6fa81ca5b8258b6aafb4963957ea20bc82b5e286
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon,  3 Aug 2020 09:43:55 +0200

anchor: in a UTF-8 locale, show an anchor as a diamond, for visibility

Diffstat:
Msrc/winio.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -2276,7 +2276,12 @@ void draw_row(int row, const char *converted, linestruct *line, size_t from_col) wattroff(edit, interface_color_pair[LINE_NUMBER]); #ifndef NANO_TINY if (line->has_anchor && from_col == 0) - wprintw(edit, "+"); +#ifdef ENABLE_UTF8 + if (using_utf8()) + wprintw(edit, "\xE2\x97\x86"); /* black diamond */ + else +#endif + wprintw(edit, "+"); else #endif wprintw(edit, " ");