[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kate/completion
From: Christoph Cullmann <cullmann () kde ! org>
Date: 2009-07-08 12:59:02
Message-ID: 1247057942.721059.8470.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 993308 by cullmann:
fix completion of small works, like kate
M +3 -3 katewordcompletion.cpp
M +1 -1 katewordcompletion.h
--- trunk/KDE/kdelibs/kate/completion/katewordcompletion.cpp #993307:993308
@@ -81,7 +81,7 @@
void KateWordCompletionModel::saveMatches( KTextEditor::View* view,
const KTextEditor::Range& range)
{
- m_matches = allMatches( view, range, 2 );
+ m_matches = allMatches( view, range );
m_matches.sort();
}
@@ -172,7 +172,7 @@
// Scan throughout the entire document for possible completions,
// ignoring any dublets
-const QStringList KateWordCompletionModel::allMatches( KTextEditor::View *view, \
const KTextEditor::Range &range, int minAdditionalLength ) const +const QStringList \
KateWordCompletionModel::allMatches( KTextEditor::View *view, const \
KTextEditor::Range &range ) const {
QStringList l;
@@ -183,7 +183,7 @@
int i( 0 );
int pos( 0 );
KTextEditor::Document *doc = view->document();
- QRegExp re( "\\b(" + doc->text( range ) + "\\w{" + \
QString::number(minAdditionalLength) + ",})" ); + QRegExp re( "\\b(" + doc->text( \
range ) + "\\w{1,})" ); QString s, m;
QSet<QString> seen;
--- trunk/KDE/kdelibs/kate/completion/katewordcompletion.h #993307:993308
@@ -70,7 +70,7 @@
virtual QModelIndex index(int row, int column, const QModelIndex& \
parent=QModelIndex()) const; virtual QModelIndex parent(const QModelIndex& index) \
const;
- const QStringList allMatches( KTextEditor::View *view, const KTextEditor::Range \
&range, int minAdditionalLength = 1 ) const; + const QStringList allMatches( \
KTextEditor::View *view, const KTextEditor::Range &range ) const;
private:
QStringList m_matches;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic