aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-01-31 06:54:53 +0000
committernyamatongwe <unknown>2010-01-31 06:54:53 +0000
commitaa5f713e795a1408c3b4a1295aa1f89f0b2faac4 (patch)
tree0524f63a25a026c8de1d3e759bf910008aca1bcb /src
parent2610638a255986784ca68dee5b9e480c2a624c70 (diff)
downloadscintilla-mirror-aa5f713e795a1408c3b4a1295aa1f89f0b2faac4.tar.gz
Added SCI_SETFIRSTVISIBLELINE to match SCI_GETFIRSTVISIBLELINE.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index f6e7b0603..f9eee5acc 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -6499,6 +6499,10 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
case SCI_GETFIRSTVISIBLELINE:
return topLine;
+ case SCI_SETFIRSTVISIBLELINE:
+ ScrollTo(wParam);
+ break;
+
case SCI_GETLINE: { // Risk of overwriting the end of the buffer
int lineStart = pdoc->LineStart(wParam);
int lineEnd = pdoc->LineStart(wParam + 1);