SF.net SVN: geany:[5901] trunk

colombanw at users.sourceforge.net colombanw at xxxxx
Thu Aug 25 20:12:56 UTC 2011


Revision: 5901
          http://geany.svn.sourceforge.net/geany/?rev=5901&view=rev
Author:   colombanw
Date:     2011-08-25 20:12:56 +0000 (Thu, 25 Aug 2011)
Log Message:
-----------
Support for non-ASCII characters in word completion

Closes #3386129.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/editor.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2011-08-25 20:12:36 UTC (rev 5900)
+++ trunk/ChangeLog	2011-08-25 20:12:56 UTC (rev 5901)
@@ -1,3 +1,10 @@
+2011-08-24  Colomban Wendling  <colomban(at)geany(dot)org>
+
+ * src/editor.c:
+   Make completion and word completion support non-ASCII characters
+   (closes #3313351).
+
+
 2011-08-21  Colomban Wendling  <colomban(at)geany(dot)org>
 
  * src/callbacks.c, src/editor.c, src/editor.h, src/keybindings.c:

Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c	2011-08-25 20:12:36 UTC (rev 5900)
+++ trunk/src/editor.c	2011-08-25 20:12:56 UTC (rev 5901)
@@ -2080,8 +2080,7 @@
 		word_end = pos_find + rootlen;
 		if (pos_find != current)
 		{
-			while (word_end < len && strchr(GEANY_WORDCHARS, sci_get_char_at(sci, word_end)) != NULL)
-				word_end++;
+			word_end = SSM(sci, SCI_WORDENDPOSITION, word_end, TRUE);
 
 			word_length = word_end - pos_find;
 			if (word_length > rootlen)

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list