commit c5e9a434b1e67eab0305765201ea7afe50e5f01f
parent 67e3b93861f7444ae5e68029a2377150db69acf1
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Mon, 23 May 2005 20:16:29 +0000
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
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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();