fix one last off-by-one error that occurs when do_gotolinecolumn() is

used interactively


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2537 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-05-23 20:16:29 +00:00
parent 67e3b93861
commit c5e9a434b1
1 changed files with 1 additions and 1 deletions

View File

@ -993,7 +993,7 @@ void do_gotolinecolumn(int line, ssize_t column, bool use_answer, bool
* number (which is zero-based) only if we hit Enter at the
* statusbar prompt. */
if (!parse_line_column(answer, &line, &column) || line < 1 ||
column < 0) {
--column < 0) {
if (i == 0)
statusbar(_("Come on, be reasonable"));
display_main_list();