Commit 1f204c02 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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
parent 4e8e4953
Showing with 41 additions and 39 deletions
+41 -39
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment