commit c000917cdad717f3c188f81bbb11da905af45499
parent 76b87890d81f7e95c498a5572878ce59fc136b04
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 17 May 2025 09:32:03 +0200
anchor: change the aspect of any anchor to a dagger (†)
Now that anchors are always saved, there is no need to differentiate
anchors that are saved (■) from anchors that will evaporate (⬥).
Choose a new appearance (†) to signal the changed behavior.
(And because I didn't much like the look of the block.)
Diffstat:
1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/src/winio.c b/src/winio.c
@@ -2274,9 +2274,7 @@ void minibar(void)
/* Indicate it when the line has an anchor. */
if (openfile->current->has_anchor && namewidth + 7 < COLS)
- mvwaddstr(footwin, 0, COLS - 5 - padding, openfile->filetop->has_anchor ?
- (using_utf8() ? "\xEF\xBF\xAD" : "=") :
- (using_utf8() ? "\xE2\xAC\xA5" : "+"));
+ mvwaddstr(footwin, 0, COLS - 5 - padding, using_utf8() ? "\xE2\x80\xA0" : "+");
/* Display how many percent the current line is into the file. */
if (namewidth + 6 < COLS) {
@@ -2562,14 +2560,7 @@ void draw_row(int row, const char *converted, linestruct *line, size_t from_col)
wattroff(midwin, interface_color_pair[LINE_NUMBER]);
#ifndef NANO_TINY
if (line->has_anchor && (from_col == 0 || !ISSET(SOFTWRAP)))
-#ifdef ENABLE_UTF8
- if (using_utf8())
- wprintw(midwin, openfile->filetop->has_anchor ?
- "\xEF\xBF\xAD" : /* halfwidth black square */
- "\xE2\xAC\xA5"); /* black medium diamond */
- else
-#endif
- wprintw(midwin, openfile->filetop->has_anchor ? "=" : "+");
+ wprintw(midwin, using_utf8() ? "\xE2\x80\xA0" : "+");
else
#endif
wprintw(midwin, " ");