mirror of git://git.sv.gnu.org/nano.git
anchor: in a UTF-8 locale, show an anchor as a diamond, for visibility
This commit is contained in:
parent
6fa81ca5b8
commit
18a4658d4f
|
@ -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, " ");
|
||||
|
|
Loading…
Reference in New Issue