diff --git a/src/search.c b/src/search.c index 0f5b7206..cd0d98b5 100644 --- a/src/search.c +++ b/src/search.c @@ -983,6 +983,8 @@ void put_or_lift_anchor(void) { openfile->current->has_anchor = !openfile->current->has_anchor; + update_line(openfile->current, openfile->current_x); + if (openfile->current->has_anchor) statusbar(_("Placed anchor")); else diff --git a/src/winio.c b/src/winio.c index c3a80240..eb89e16d 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2395,7 +2395,12 @@ void draw_row(int row, const char *converted, linestruct *line, size_t from_col) #endif mvwprintw(edit, row, 0, "%*zd", margin - 1, line->lineno); wattroff(edit, interface_color_pair[LINE_NUMBER]); - wprintw(edit, " "); +#ifndef NANO_TINY + if (line->has_anchor && from_col == 0) + wprintw(edit, "+"); + else +#endif + wprintw(edit, " "); } #endif