[gnumeric] fix pasting of function name with cursor not in terminal position



commit 3c93a6e7e2f1281f906f07a3839460c345551c30
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Wed Jul 21 21:51:16 2010 -0600

    fix pasting of function name with cursor not in terminal position
    
    2010-07-21  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* gnumeric-expr-entry.c (gee_check_tooltip): zero teh correct token

 src/widgets/ChangeLog             |    4 ++++
 src/widgets/gnumeric-expr-entry.c |    3 +--
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/widgets/ChangeLog b/src/widgets/ChangeLog
index d73321b..f2d7f6e 100644
--- a/src/widgets/ChangeLog
+++ b/src/widgets/ChangeLog
@@ -1,5 +1,9 @@
 2010-07-21  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* gnumeric-expr-entry.c (gee_check_tooltip): zero teh correct token
+
+2010-07-21  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* gnumeric-expr-entry.c (gee_create_tooltip): add argument,
 	  set tabs if required, change all callers
 	(gee_set_tooltip_completion): no need to autocomplete a complete
diff --git a/src/widgets/gnumeric-expr-entry.c b/src/widgets/gnumeric-expr-entry.c
index 7bce3c2..ff56db2 100644
--- a/src/widgets/gnumeric-expr-entry.c
+++ b/src/widgets/gnumeric-expr-entry.c
@@ -906,8 +906,7 @@ gee_check_tooltip (GnmExprEntry *gee)
 		stuff = TRUE;
 		break;
 	}
-	if (gli->start == end_t)
-		gli--;
+	gli--;
 
 	/* This creates the completion tooltip */
 	if (!stuff && gli->start > 0 && gli->token == STRING) {



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