fix spurious warning message in do_gotoline() that was introduced when

it was overhauled, and also fix some indentation in statusq()


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1990 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2004-10-15 01:39:46 +00:00
parent 4e8e495301
commit 1f204c0204
2 changed files with 40 additions and 38 deletions

View File

@ -924,8 +924,10 @@ void do_gotoline(int line, bool save_pos)
return;
}
/* Bounds check. */
/* Do a bounds check. Display a warning on an out-of-bounds
* line number only if we hit Enter at the statusbar prompt. */
if (!parse_num(answer, &line) || line < 0) {
if (i == 0)
statusbar(_("Come on, be reasonable"));
display_main_list();
return;