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-d3aeb78583b8master
parent
4e8e495301
commit
1f204c0204
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue