Skip to content

Commit

Permalink
Merge pull request #5 from sfanxiang/sts
Browse files Browse the repository at this point in the history
XCalcTextView: scroll to selection after selecting position
  • Loading branch information
scottmc committed Jan 14, 2018
2 parents c974d76 + 559766a commit 0748be9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/XCalcTextView.cpp
Expand Up @@ -78,11 +78,13 @@ void XCalcTextView :: KeyDown(const char *bytes, int32 numBytes)
this->SetText(myLine);
myEnd=strlen(myLine);
Select(myEnd, myEnd);
ScrollToSelection();
}
// wrong expression : beep !
else
{
Select(pos, pos);
ScrollToSelection();
beep();
}
break;
Expand Down

0 comments on commit 0748be9

Please sign in to comment.