mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: Fixed selection issue in DocEdit/LineEdit
git-svn-id: svn://ultimatepp.org/upp/trunk@12946 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c34cc4236a
commit
7020c8fafb
2 changed files with 9 additions and 6 deletions
|
|
@ -240,9 +240,8 @@ void DocEdit::PlaceCaret(int64 newpos, bool select) {
|
|||
newpos = GetLength32();
|
||||
int z = GetLine(newpos);
|
||||
if(select) {
|
||||
if(anchor < 0) {
|
||||
if(anchor < 0)
|
||||
anchor = cursor;
|
||||
}
|
||||
RefreshLines(z, GetLine(cursor));
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue