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
master
David Lawrence Ramsey 2007-11-05 17:18:16 +00:00
parent 4821ac645f
commit 4fe5edbc11
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-11-05 David Lawrence Ramsey <pooka109@gmail.com>
* 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 <pooka109@gmail.com>
* doc/man/nano.1, doc/man/fr/nano.1, doc/texinfo/nano.texi,

View File

@ -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;
}