SF.net SVN: geany:[3928] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Wed Jul 8 12:35:54 UTC 2009
Revision: 3928
http://geany.svn.sourceforge.net/geany/?rev=3928&view=rev
Author: ntrel
Date: 2009-07-08 12:35:54 +0000 (Wed, 08 Jul 2009)
Log Message:
-----------
Fix limiting number of word completion entries too much.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/editor.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-07-08 12:29:20 UTC (rev 3927)
+++ trunk/ChangeLog 2009-07-08 12:35:54 UTC (rev 3928)
@@ -4,6 +4,8 @@
doc/geany.txt, doc/geany.html, geany.glade, TODO:
Add 'Autocomplete all words in document' pref.
Use 'autocompletion' in dialog and docs, not 'auto completion'.
+ * src/editor.c:
+ Fix limiting number of word completion entries too much.
2009-07-06 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2009-07-08 12:29:20 UTC (rev 3927)
+++ trunk/src/editor.c 2009-07-08 12:35:54 UTC (rev 3928)
@@ -1761,10 +1761,12 @@
word[word_length + 1] = ' ';
/* search the words string whether we already have the word in, otherwise add it */
if (strstr(words->str, word) == NULL)
+ {
g_string_append(words, word + 1);
+ nmatches++;
+ }
g_free(word);
- nmatches++;
if (nmatches == editor_prefs.autocompletion_max_entries)
{
g_string_append(words, "... ");
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