diff options
| author | nyamatongwe <devnull@localhost> | 2013-04-09 15:25:26 +1000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2013-04-09 15:25:26 +1000 |
| commit | 20cd2f6a7e5abd27a75df632e169b57052d01b16 (patch) | |
| tree | 9b4314211296b33dd224e5c83867bf5f9786c6c3 /src/Document.cxx | |
| parent | 15a1ac5299a71728b459a2f0ed6616088aa3ae46 (diff) | |
| parent | 0c7d071a2116dbdb069c6e8ec3b858d0c45af93c (diff) | |
| download | scintilla-mirror-20cd2f6a7e5abd27a75df632e169b57052d01b16.tar.gz | |
Merged Cocoa composition fix.
Diffstat (limited to 'src/Document.cxx')
| -rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index b75c754ac..56785af78 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -2236,6 +2236,8 @@ long BuiltinRegex::FindText(Document *doc, int minPos, int maxPos, const char *s int success = search.Execute(di, startOfLine, endOfLine); if (success) { pos = search.bopat[0]; + // Ensure only whole characters selected + search.eopat[0] = doc->MovePositionOutsideChar(search.eopat[0], 1, false); lenRet = search.eopat[0] - search.bopat[0]; // There can be only one start of a line, so no need to look for last match in line if ((increment == -1) && (s[0] != '^')) { |
