[gnome-builder] vala: don't replay the results if the line has changed
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vala: don't replay the results if the line has changed
- Date: Fri, 2 Oct 2015 02:42:18 +0000 (UTC)
commit 838a215d475ff32b381fc7c25728fd638afdf50e
Author: Christian Hergert <christian hergert me>
Date: Thu Oct 1 19:36:59 2015 -0700
vala: don't replay the results if the line has changed
We might consider pushing this type of check into the results themselves.
.../vala-pack/ide-vala-completion-provider.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/vala-pack/ide-vala-completion-provider.vala
b/plugins/vala-pack/ide-vala-completion-provider.vala
index 396ca3e..df184f2 100644
--- a/plugins/vala-pack/ide-vala-completion-provider.vala
+++ b/plugins/vala-pack/ide-vala-completion-provider.vala
@@ -48,7 +48,7 @@ namespace Ide
var line = begin.get_slice (iter);
if (this.results != null) {
- if (this.results.replay (this.query)) {
+ if ((this.line == iter.get_line ()) && this.results.replay (this.query)) {
this.results.present (this, context);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]