From: David Lawrence Ramsey Date: Mon, 23 May 2005 20:16:29 +0000 (+0000) Subject: fix one last off-by-one error that occurs when do_gotolinecolumn() is X-Git-Tag: v1.3.8~266 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c5e9a434b1e67eab0305765201ea7afe50e5f01f;p=nano.git 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 --- diff --git a/src/search.c b/src/search.c index bb798cfc..40266e2d 100644 --- a/src/search.c +++ b/src/search.c @@ -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();