restore emacs screenToTextCoordinates

This commit is contained in:
Chester Wood 2013-01-27 13:00:29 -07:00 committed by nightwing
commit 9241e3269c

View file

@ -105,14 +105,19 @@ exports.handler.attach = function(editor) {
e.session.$selectLongWords = true;
});
editor.renderer.screenToTextCoordinates = screenToTextBlockCoordinates;
editor.setStyle("emacs-mode");
};
exports.handler.detach = function(editor) {
delete editor.renderer.screenToTextCoordinates;
editor.unsetStyle("emacs-mode");
editor.removeEventListener("click",$resetMarkMode);
editor.unsetStyle("emacs-mode");
};
var $resetMarkMode = function(e) {