Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d635df9
)
ide/CodeEditor: Limiting caret to line when drag & dropping control to code editor
author
Jerome St-Louis
<jerome@ecere.com>
Wed, 26 Mar 2014 04:25:29 +0000
(
00:25
-0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Wed, 26 Mar 2014 04:28:15 +0000
(
00:28
-0400)
- (Was only an issue with free caret mode)
ide/src/designer/CodeEditor.ec
patch
|
blob
|
history
diff --git
a/ide/src/designer/CodeEditor.ec
b/ide/src/designer/CodeEditor.ec
index
3a40181
..
623246e
100644
(file)
--- a/
ide/src/designer/CodeEditor.ec
+++ b/
ide/src/designer/CodeEditor.ec
@@
-1364,7
+1364,7
@@
class CodeEditor : Window
//editBox.NotifyCaretMove(this, editBox, y, x);
editBox.GoToLineNum(y);
- editBox.GoToPosition(editBox.line, y,
x
);
+ editBox.GoToPosition(editBox.line, y,
Min(x, editBox.line.count)
);
classObject = selected ? selected.oClass : null;