diff options
author | nyamatongwe <devnull@localhost> | 2000-03-09 03:02:33 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-03-09 03:02:33 +0000 |
commit | 0b2d7bed9cba3082dc75c7405b042c7426e3cf83 (patch) | |
tree | 42a3743c512569c9deb14ed4cd38004027c28a1c | |
parent | 481cc19526c5383be2635196efc28b04aea7906a (diff) | |
download | scintilla-mirror-0b2d7bed9cba3082dc75c7405b042c7426e3cf83.tar.gz |
After paste, view repositioned to ensure caret visible.
-rw-r--r-- | src/Editor.cxx | 1 | ||||
-rw-r--r-- | src/KeyWords.cxx | 4 | ||||
-rw-r--r-- | src/SVector.h | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 1ead18d34..4723d8850 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2692,6 +2692,7 @@ LRESULT Editor::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) { case WM_PASTE: Paste(); SetLastXChosen(); + EnsureCaretVisible(); break; case WM_CLEAR: 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); diff --git a/src/SVector.h b/src/SVector.h index 7bc948738..baa8c7c4f 100644 --- a/src/SVector.h +++ b/src/SVector.h @@ -30,7 +30,7 @@ class SVector { return; } size = newSize; - for (int i=0; i<len; i++) { + for (unsigned int i=0; i<len; i++) { newv[i] = v[i]; } delete []v; |