From 926e43d2e9b658fac3adb3fc2c0e0db0e819b819 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 31 Jan 2010 06:54:53 +0000 Subject: Added SCI_SETFIRSTVISIBLELINE to match SCI_GETFIRSTVISIBLELINE. --- src/Editor.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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); -- cgit v1.2.3