From 4fe5edbc113b8c14060cb9d4a0de6b6c6bea4f7f Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Mon, 5 Nov 2007 17:18:16 +0000 Subject: [PATCH] in do_gotolinecolumn(), use a clearer error message if we enter an invalid line or column number, per Mike Melanson's suggestion git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4177 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 6 ++++++ src/search.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dcdd2aed..06cf5707 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-05 David Lawrence Ramsey + + * search.c (do_gotolinecolumn): Use a clearer error message if + we enter an invalid line or column number, per Mike Melanson's + suggestion. + 2007-10-11 David Lawrence Ramsey * doc/man/nano.1, doc/man/fr/nano.1, doc/texinfo/nano.texi, diff --git a/src/search.c b/src/search.c index e7c4997c..e80d59a0 100644 --- a/src/search.c +++ b/src/search.c @@ -1012,7 +1012,7 @@ void do_gotolinecolumn(ssize_t line, ssize_t column, bool use_answer, if (!parse_line_column(answer, &line, &column) || line < 1 || column < 1) { if (i == 0) - statusbar(_("Come on, be reasonable")); + statusbar(_("Invalid line or column number")); display_main_list(); return; } -- 2.39.5