From 19579cf263785dd38fbb9ce0dfe84be541786f88 Mon Sep 17 00:00:00 2001 From: David Halter Date: Fri, 13 Jul 2012 15:51:47 +0200 Subject: [PATCH] removed a little ordering bug, which was just a problem with gotos --- functions.py | 5 +---- test/completion/ordering.py | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/functions.py b/functions.py index 77e91780..484010fb 100644 --- a/functions.py +++ b/functions.py @@ -194,10 +194,7 @@ def prepare_goto(source, row, column, source_path, is_like_search): path_tuple = () raise NotFoundError(scope, path_tuple) else: - if is_like_search: - stmt.line_nr = row - else: - stmt.line_nr = row + 1 + stmt.line_nr = row stmt.indent = column stmt.parent = scope scopes = evaluate.follow_statement(stmt) diff --git a/test/completion/ordering.py b/test/completion/ordering.py index a63abecd..3af1968d 100644 --- a/test/completion/ordering.py +++ b/test/completion/ordering.py @@ -78,7 +78,6 @@ class A(object): a = 3 #? int() a - # TODO remove this line!! a = list() def __init__(self): self.b = ""