change \r\n to \n when pasting in terminal

This commit is contained in:
nightwing 2015-06-25 14:13:53 +04:00
parent a65656baee
commit 058508d97a

View File

@ -206,7 +206,7 @@ define(function(require, exports, module) {
}]);
ace.onPaste = function(text) {
this.send(text);
this.send(text.replace(/\r\n/g, "\n"));
};
ace.setKeyboardHandler(this);