]> git.wh0rd.org Git - nano.git/commitdiff
fix one last off-by-one error that occurs when do_gotolinecolumn() is
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 23 May 2005 20:16:29 +0000 (20:16 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 23 May 2005 20:16:29 +0000 (20:16 +0000)
used interactively

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2537 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/search.c

index bb798cfc334300409b31bb058505c7894da8927f..40266e2d4875bae15d194499c7c0753fd7d3b85a 100644 (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();