Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebcb29a
)
ecere/gui/EditBox: Fixed overwrite caret losing position on up/down
author
Jerome St-Louis
<jerome@ecere.com>
Wed, 9 Apr 2014 13:18:16 +0000
(09:18 -0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Wed, 9 Apr 2014 13:18:16 +0000
(09:18 -0400)
ecere/src/gui/controls/EditBox.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gui/controls/EditBox.ec
b/ecere/src/gui/controls/EditBox.ec
index
af50445
..
98ccf54
100644
(file)
--- a/
ecere/src/gui/controls/EditBox.ec
+++ b/
ecere/src/gui/controls/EditBox.ec
@@
-2838,7
+2838,7
@@
private:
{
if(line)
{
- if(mouseMove ||
(!overwrite && !style.noCaret)
)
+ if(mouseMove ||
!style.noCaret
)
{
int max = this.mouseMove ? this.dropX : this.x;
int y = this.mouseMove ? this.dropY : this.y;
@@
-2894,7
+2894,10
@@
private:
if(setCaret)
caretX = x;
caretY = y * this.space.h;
- SetCaret(x + XOFFSET-2, y * space.h + YOFFSET, space.h);
+ if(!overwrite)
+ SetCaret(x + XOFFSET-2, y * space.h + YOFFSET, space.h);
+ else
+ SetCaret(0, 0, 0);
}
else
SetCaret(0, 0, 0);