aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Noldor2008-09-28 15:06:44 +0000
committerGravatar Noldor2008-09-28 15:06:44 +0000
commit222ac0f37f77476a3ac683628b9b7347523ed655 (patch)
treec77f8f34d73b77cb8463c9ecbdf18a35c6e9b4cc /src/modules
parent1 fix in notifier window (diff)
downloadKVIrc-222ac0f37f77476a3ac683628b9b7347523ed655.tar.gz
KVIrc-222ac0f37f77476a3ac683628b9b7347523ed655.tar.bz2
KVIrc-222ac0f37f77476a3ac683628b9b7347523ed655.zip
quick fix in editor module (code completer)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2589 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/editor/scripteditor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/editor/scripteditor.cpp b/src/modules/editor/scripteditor.cpp
index 38667f329..544ff4e96 100644
--- a/src/modules/editor/scripteditor.cpp
+++ b/src/modules/editor/scripteditor.cpp
@@ -162,6 +162,7 @@ void KviScriptEditorWidget::asyncCompleterCreation()
f.open(QIODevice::WriteOnly);
f.write(szBuffer.toUtf8());
f.close();
+ KviKvsKernel::instance()->getAllFunctionsCommandsCore(m_pListCompletition);
createCompleter(*m_pListCompletition);
iIndex = 0;
iModulesCount = 0;
@@ -578,7 +579,7 @@ void KviScriptEditorSyntaxHighlighter::highlightBlock(const QString & szText)
if(iEndStateOfLastPara < 0)
iEndStateOfLastPara = 0;
/*
- QRegExp reg("[$][a-zA-Z][a-zA-Z0-9_\\.:]+");
+ QRegExp reg("[$](|[a-zA-Z]|[a-zA-Z]+[a-zA-Z0-9_\.:]*)");
int index = text.indexOf(reg);
while (index >= 0)
{