[anjuta] sourceview: remove filtering of single proposals matching pre_word



commit 7dfb46c3488148a22acb1107e20af64b04274a64
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Mon Apr 22 00:01:58 2013 +0200

    sourceview: remove filtering of single proposals matching pre_word
    
    That is now done by AnjutaLanguageProvider instead. It was wrong to do it here
    since the proposal may not come from a IAnjutaLanguageProvider.

 plugins/sourceview/sourceview.c | 9 ---------
 1 file changed, 9 deletions(-)
---
diff --git a/plugins/sourceview/sourceview.c b/plugins/sourceview/sourceview.c
index bf1110e..f6ab2b0 100644
--- a/plugins/sourceview/sourceview.c
+++ b/plugins/sourceview/sourceview.c
@@ -2355,15 +2355,6 @@ iassist_proposals(IAnjutaEditorAssist* iassist,
                   gboolean finished,
                   GError** e)
 {
-       /* Hide if the only suggetions is exactly the typed word */
-       if (pre_word && proposals && g_list_length (proposals) == 1)
-       {
-               IAnjutaEditorAssistProposal* proposal = proposals->data;
-               AnjutaLanguageProposalData* data = proposal->data;
-               if (g_str_equal (pre_word, data->name))
-                       proposals = NULL;
-       }
-       
        Sourceview* sv = ANJUTA_SOURCEVIEW(iassist);
        GtkSourceCompletion* completion = gtk_source_view_get_completion(GTK_SOURCE_VIEW(sv->priv->view));
        GList* node;


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