aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2006-09-01 02:35:49 +0000
committernyamatongwe <devnull@localhost>2006-09-01 02:35:49 +0000
commit9e78d9ffbe9b3bee0412e8fda24421dc8aadcf47 (patch)
tree5fba4fbdb8a41b1c8d22239724e43989ed6df095
parentac213e98110be5854986be48e903d41e258cd635 (diff)
downloadscintilla-mirror-9e78d9ffbe9b3bee0412e8fda24421dc8aadcf47.tar.gz
Matching now works for single character strings.
-rw-r--r--src/StyleContext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/StyleContext.h b/src/StyleContext.h
index 75e187859..a670867ce 100644
--- a/src/StyleContext.h
+++ b/src/StyleContext.h
@@ -116,6 +116,8 @@ public:
if (ch != static_cast<unsigned char>(*s))
return false;
s++;
+ if (!*s)
+ return true;
if (chNext != static_cast<unsigned char>(*s))
return false;
s++;