Notepad: Goto an offscreen line will now properly scroll the edit control

svn path=/trunk/; revision=18287
This commit is contained in:
Nathan Woods 2005-10-05 23:52:43 +00:00
parent 2446ae0fd7
commit d546f71ac4

View file

@ -775,6 +775,7 @@ VOID DIALOG_GoTo(VOID)
nLine--;
}
SendMessage(Globals.hEdit, EM_SETSEL, i, i);
SendMessage(Globals.hEdit, EM_SCROLLCARET, 0, 0);
}
HeapFree(GetProcessHeap(), 0, pszText);
}