[gnumeric] GUI: Avoid function name completion for =$h



commit 5244573e880ae0afa56a6b71e7328abbab88fa77
Author: Morten Welinder <terra gnome org>
Date:   Wed Jan 25 13:09:00 2012 -0500

    GUI: Avoid function name completion for =$h

 NEWS                              |    1 +
 src/widgets/ChangeLog             |    2 ++
 src/widgets/gnumeric-expr-entry.c |    5 ++++-
 3 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index d17088e..61e25cb 100644
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,7 @@ Morten:
 	* Fix allocate-free mismatch in sheet management dialog.
 	* Fix paste special undo problem.  [#667702]
 	* Fix F4 (abs/rel-cycling) bug.  [#668625]
+	* Fix minor function name completion bug.  [#668624]
 
 --------------------------------------------------------------------------
 Gnumeric 1.11.1
diff --git a/src/widgets/ChangeLog b/src/widgets/ChangeLog
index 42ab9f0..c9bb15a 100644
--- a/src/widgets/ChangeLog
+++ b/src/widgets/ChangeLog
@@ -4,6 +4,8 @@
 	parse position.  Fixes #668625.
 	(gee_rangesel_reset): Use the right size for memset.
 	(gnm_expr_entry_set_flags): Make this a no-op if nothing changes.
+	(gee_check_tooltip): No completions for =$h due to the $.  Fixes
+	#668624.
 
 2012-01-08  Morten Welinder  <terra gnome org>
 
diff --git a/src/widgets/gnumeric-expr-entry.c b/src/widgets/gnumeric-expr-entry.c
index f2c43b7..a7ad205 100644
--- a/src/widgets/gnumeric-expr-entry.c
+++ b/src/widgets/gnumeric-expr-entry.c
@@ -1100,7 +1100,10 @@ gee_check_tooltip (GnmExprEntry *gee)
 		last_token = (gli - 1)->token;
 
 	/* This creates the completion tooltip */
-	if (!stuff && gli->token == STRING && last_token != CONSTANT) {
+	if (!stuff &&
+	    gli->token == STRING &&
+	    last_token != CONSTANT &&
+	    last_token != '$') {
 		guint start_t = gli->start;
 		char *prefix;
 		GSList *list;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]