mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
ide: Git history diff dialog now sets cursor on the same line as editor
This commit is contained in:
parent
ec2a567387
commit
3e81cb3ec1
8 changed files with 79 additions and 14 deletions
|
|
@ -21,6 +21,21 @@ TextDiffCtrl::TextDiffCtrl()
|
|||
right.HideSb();
|
||||
left.WhenLeftDouble = THISBACK(GetLeftLine);
|
||||
right.WhenLeftDouble = THISBACK(GetRightLine);
|
||||
left.WhenCursor = [=] {
|
||||
if(!cl) {
|
||||
cl++;
|
||||
right.SetLine(left.GetLine());
|
||||
cl--;
|
||||
}
|
||||
};
|
||||
|
||||
right.WhenCursor = [=] {
|
||||
if(!cl) {
|
||||
cl++;
|
||||
left.SetLine(right.GetLine());
|
||||
cl--;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
void TextDiffCtrl::GetLeftLine(int number, int line)
|
||||
|
|
|
|||
Loading…
Reference in a new issue