Revision: 1995 http://geany.svn.sourceforge.net/geany/?rev=1995&view=rev Author: ntrel Date: 2007-10-31 05:56:12 -0700 (Wed, 31 Oct 2007)
Log Message: ----------- Use newline as autocompletion list separator, so that reST entries show correctly.
Modified Paths: -------------- trunk/ChangeLog trunk/src/document.c trunk/src/editor.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-10-31 12:16:48 UTC (rev 1994) +++ trunk/ChangeLog 2007-10-31 12:56:12 UTC (rev 1995) @@ -2,6 +2,9 @@
* src/filetypes.c, data/filetype_extensions.conf: Set reStructuredText default file extension .rst. + * src/document.c, src/editor.c: + Use newline as autocompletion list separator, so that reST entries + show correctly.
2007-10-31 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
Modified: trunk/src/document.c =================================================================== --- trunk/src/document.c 2007-10-31 12:16:48 UTC (rev 1994) +++ trunk/src/document.c 2007-10-31 12:56:12 UTC (rev 1995) @@ -407,6 +407,7 @@ sci_set_scrollbar_mode(sci, editor_prefs.show_scrollbars); sci_set_caret_policy_x(sci, CARET_JUMPS | CARET_EVEN, 0); //sci_set_caret_policy_y(sci, CARET_JUMPS | CARET_EVEN, 0); + SSM(sci, SCI_AUTOCSETSEPARATOR, '\n', 0);
// signal for insert-key(works without too, but to update the right status bar) //g_signal_connect((GtkWidget*) sci, "key-press-event",
Modified: trunk/src/editor.c =================================================================== --- trunk/src/editor.c 2007-10-31 12:16:48 UTC (rev 1994) +++ trunk/src/editor.c 2007-10-31 12:56:12 UTC (rev 1995) @@ -916,7 +916,7 @@
if (! strncmp(entities[i], root, rootlen)) { - if (j++ > 0) g_string_append_c(words, ' '); + if (j++ > 0) g_string_append_c(words, '\n'); g_string_append(words, entities[i]); } } @@ -945,7 +945,7 @@
for (j = 0; ((j < tags->len) && (j < GEANY_MAX_AUTOCOMPLETE_WORDS)); ++j) { - if (j > 0) g_string_append_c(words, ' '); + if (j > 0) g_string_append_c(words, '\n'); g_string_append(words, ((TMTag *) tags->pdata[j])->name); } show_autocomplete(sci, rootlen, words->str);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.