Commits

David Nolden  committed 687ac27

Do not filter the argument-hints with the completion text. This makes the argument-hints show up even if there is an initial completion text.

svn path=/trunk/KDE/kdelibs/kate/; revision=742170

  • Participants
  • Parent commits f2d8f4e

Comments (0)

Files changed (1)

File part/completion/katecompletionmodel.cpp

     g = fetchGroup(completionFlags, scopeIfNeeded);
 
   Item item = Item(this, ModelRow(sourceModel, row));
-  item.match(m_currentMatch);
+
+  if(g != m_argumentHints)
+    item.match(m_currentMatch);
 
   g->addItem(item, notifyModel);
 
     changeCompletions(m_ungrouped, completion, changeType);
   else {
     foreach (Group* g, m_rowTable)
-      changeCompletions(g, completion, changeType);
+      if(g != m_argumentHints)
+        changeCompletions(g, completion, changeType);
     foreach (Group* g, m_emptyGroups)
-      changeCompletions(g, completion, changeType);
+      if(g != m_argumentHints)
+        changeCompletions(g, completion, changeType);
 
     updateBestMatches();
   }
 
   } else {
     foreach (Group* g, m_rowTable)
-      changeCompletions(g, m_currentMatch, Change);
+      if(g != m_argumentHints)
+        changeCompletions(g, m_currentMatch, Change);
 
     foreach (Group* g, m_emptyGroups)
-      changeCompletions(g, m_currentMatch, Change);
+      if(g != m_argumentHints)
+        changeCompletions(g, m_currentMatch, Change);
 
     updateBestMatches();
   }
   m_ungrouped->refilter();
 
   foreach (Group* g, m_rowTable)
-    g->refilter();
+    if(g != m_argumentHints)
+      g->refilter();
 
   foreach (Group* g, m_emptyGroups)
-    g->refilter();
+    if(g != m_argumentHints)
+      g->refilter();
 
   updateBestMatches();