diff options
author | nyamatongwe <devnull@localhost> | 2006-09-01 02:35:49 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2006-09-01 02:35:49 +0000 |
commit | 9e78d9ffbe9b3bee0412e8fda24421dc8aadcf47 (patch) | |
tree | 5fba4fbdb8a41b1c8d22239724e43989ed6df095 | |
parent | ac213e98110be5854986be48e903d41e258cd635 (diff) | |
download | scintilla-mirror-9e78d9ffbe9b3bee0412e8fda24421dc8aadcf47.tar.gz |
Matching now works for single character strings.
-rw-r--r-- | src/StyleContext.h | 2 |
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++; |