mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
TheIDE got new code-browser
git-svn-id: svn://ultimatepp.org/upp/trunk@511 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3ed63a1352
commit
85b68a9f13
33 changed files with 700 additions and 462 deletions
|
|
@ -352,6 +352,7 @@ int LineEdit::PlaceCaretNoG(int newcursor, bool sel) {
|
|||
ScrollIntoCursor();
|
||||
PlaceCaret0(p);
|
||||
SelectionChanged();
|
||||
WhenSel();
|
||||
if(IsSelection())
|
||||
SetSelectionSource(ClipFmtsText());
|
||||
return p.x;
|
||||
|
|
@ -361,8 +362,9 @@ void LineEdit::PlaceCaret(int newcursor, bool sel) {
|
|||
gcolumn = PlaceCaretNoG(newcursor, sel);
|
||||
}
|
||||
|
||||
void LineEdit::TopCursor() {
|
||||
sb.SetY(GetLine(cursor));
|
||||
void LineEdit::TopCursor(int lines)
|
||||
{
|
||||
sb.SetY(max(0, GetLine(cursor) - lines));
|
||||
}
|
||||
|
||||
void LineEdit::CenterCursor() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue