aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2016-09-06 13:55:54 -0400
committerKen Moore <ken@pcbsd.org>2016-09-06 13:55:54 -0400
commite02094388ea423a9e935e623acdc36d5adbc05cc (patch)
tree25f8d3620b8933b4d20d7d666893243fcb6737c8 /src-qt5/desktop-utils/lumina-textedit
parentAnother couple quick fixes for the C/C++ regex rules: don't highlight the Qt ... (diff)
downloadlumina-e02094388ea423a9e935e623acdc36d5adbc05cc.tar.gz
lumina-e02094388ea423a9e935e623acdc36d5adbc05cc.tar.bz2
lumina-e02094388ea423a9e935e623acdc36d5adbc05cc.zip
Fix the 1-character-line detection/usage for syntax highlighting.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h
index 8f5e5a77..d3ff9a0c 100644
--- a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h
+++ b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h
@@ -55,7 +55,7 @@ protected:
int start = 0;
int splitactive = previousBlockState();
if(splitactive>splitrules.length()-1){ splitactive = -1; } //just in case
- while(start>=0 && start<text.length()-1){
+ while(start>=0 && start<=text.length()-1){
//qDebug() << "split check:" << start << splitactive;
if(splitactive>=0){
//Find the end of the current rule
bgstack15