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-d3aeb78583b8master
parent
4821ac645f
commit
4fe5edbc11
|
@ -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>
|
2007-10-11 David Lawrence Ramsey <pooka109@gmail.com>
|
||||||
|
|
||||||
* doc/man/nano.1, doc/man/fr/nano.1, doc/texinfo/nano.texi,
|
* doc/man/nano.1, doc/man/fr/nano.1, doc/texinfo/nano.texi,
|
||||||
|
|
|
@ -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 ||
|
if (!parse_line_column(answer, &line, &column) || line < 1 ||
|
||||||
column < 1) {
|
column < 1) {
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
statusbar(_("Come on, be reasonable"));
|
statusbar(_("Invalid line or column number"));
|
||||||
display_main_list();
|
display_main_list();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue