diff options
author | nyamatongwe <unknown> | 2000-03-09 03:02:33 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-03-09 03:02:33 +0000 |
commit | 6966728af912b4a3c55ad88ee4ee273248219ec7 (patch) | |
tree | 42a3743c512569c9deb14ed4cd38004027c28a1c /src/KeyWords.cxx | |
parent | 6abac07a83b2283917e39807d220e057d7774935 (diff) | |
download | scintilla-mirror-6966728af912b4a3c55ad88ee4ee273248219ec7.tar.gz |
After paste, view repositioned to ensure caret visible.
Diffstat (limited to 'src/KeyWords.cxx')
-rw-r--r-- | src/KeyWords.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KeyWords.cxx b/src/KeyWords.cxx index 7a6784f73..029db8064 100644 --- a/src/KeyWords.cxx +++ b/src/KeyWords.cxx @@ -128,7 +128,7 @@ static void ColouriseCppDoc(int codePage, int startPos, int length, char chPrev = ' '; char chNext = styler[startPos]; int startSeg = startPos; - int lengthDoc = startPos + length; + unsigned int lengthDoc = startPos + length; int visChars = 0; for (unsigned int i = startPos; i <= lengthDoc; i++) { char ch = chNext; @@ -1259,7 +1259,7 @@ static int classifyTagHTML(unsigned int start, unsigned int end, char s[100]; // Copy after the '<' unsigned int i = 0; - for (int cPos=start; cPos <= end && i < 30; cPos++) { + for (unsigned int cPos=start; cPos <= end && i < 30; cPos++) { char ch = styler[cPos]; if (ch != '<') s[i++] = tolower(ch); |