nano

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

commit e6b087bcae38a16ffc770fcc714764494da3910d
parent a0918c5e985192051575c58715721684e35ae547
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 19 May 2025 10:35:35 +0200

feedback: suppress "Jumped to anchor" when line numbers are active

When line numbers are present, any anchors are displayed in the margin,
so it should be rather obvious where the cursor jumped to -- no need to
mention this on the status bar.

Diffstat:
Msrc/search.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/search.c b/src/search.c @@ -1030,7 +1030,8 @@ void go_to_and_confirm(linestruct *line) recook |= perturbed; #endif edit_redraw(was_current, CENTERING); - statusbar(_("Jumped to anchor")); + if (!ISSET(LINE_NUMBERS)) + statusbar(_("Jumped to anchor")); } else if (openfile->current->has_anchor) statusline(REMARK, _("This is the only anchor")); else