This commit is contained in:
nightwing 2012-03-21 11:45:27 +04:00
commit 6ec76596a3

View file

@ -134,7 +134,7 @@ function DefaultHandlers(editor) {
if (!editor.$mouseHandler.$clickSelection) { if (!editor.$mouseHandler.$clickSelection) {
if (!dragCursor) { if (!dragCursor) {
editor.moveCursorToPosition(pos); editor.moveCursorToPosition(pos);
editor.selection.clearSelection(pos.row, pos.column); editor.selection.clearSelection();
} }
} }
@ -195,7 +195,7 @@ function DefaultHandlers(editor) {
else { else {
if (!_self.$clickSelection) { if (!_self.$clickSelection) {
editor.moveCursorToPosition(pos); editor.moveCursorToPosition(pos);
editor.selection.clearSelection(pos.row, pos.column); editor.selection.clearSelection();
} }
} }
state = STATE_SELECT; state = STATE_SELECT;