restore emacs screenToTextCoordinates
This commit is contained in:
parent
db34cf6a20
commit
9241e3269c
1 changed files with 6 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue