Merge pull request +15134 from c9/ide-fix-various

several small bugfixes
pull/385/head
Harutyun Amirjanyan 2016-12-16 19:23:29 +04:00 zatwierdzone przez GitHub
commit 82a4bcff4d
5 zmienionych plików z 13 dodań i 11 usunięć

Wyświetl plik

@ -622,7 +622,7 @@ exports.commands = [{
scrollIntoView: "cursor"
}, {
name: "transposeletters",
bindKey: bindKey("Ctrl-T", "Ctrl-T"),
bindKey: bindKey("Alt-X", "Ctrl-X"),
exec: function(editor) { editor.transposeLetters(); },
multiSelectAction: function(editor) {editor.transposeSelections(1); },
scrollIntoView: "cursor"

7
node_modules/ace/lib/ace/editor.js wygenerowano vendored
Wyświetl plik

@ -966,8 +966,11 @@ var Editor = function(renderer, session) {
var transform = mode.transformAction(session.getState(cursor.row), 'insertion', this, session, text);
if (transform) {
if (text !== transform.text) {
this.session.mergeUndoDeltas = false;
this.$mergeNextCommand = false;
// keep automatic insertion in a separate delta, unless it is in multiselect mode
if (!this.inVirtualSelectionMode) {
this.session.mergeUndoDeltas = false;
this.mergeNextCommand = false;
}
}
text = transform.text;

Wyświetl plik

@ -119,7 +119,8 @@ MultiHashHandler.prototype = HashHandler.prototype;
function getPosition(command) {
return typeof command == "object" && command.bindKey
&& command.bindKey.position || 0;
&& command.bindKey.position
|| (command.isDefault ? -100 : 0);
}
this._addCommandToBinding = function(keyId, command, position) {
var ckb = this.commandKeyBinding, i;
@ -133,13 +134,11 @@ MultiHashHandler.prototype = HashHandler.prototype;
} else if ((i = ckb[keyId].indexOf(command)) != -1) {
ckb[keyId].splice(i, 1);
}
if (typeof position != "number") {
if (position || command.isDefault)
position = -100;
else
position = getPosition(command);
position = getPosition(command);
}
var commands = ckb[keyId];
for (i = 0; i < commands.length; i++) {
var other = commands[i];

Wyświetl plik

@ -98,7 +98,7 @@
"c9.ide.language.python": "#189b55135d",
"c9.ide.language.go": "#c58539fc05",
"c9.ide.navigate": "#5d5707058c",
"c9.ide.newresource": "#981a408a7b",
"c9.ide.newresource": "#636e7a7345",
"c9.ide.openfiles": "#2ae85a9e33",
"c9.ide.preview": "#5f5fff0185",
"c9.ide.preview.browser": "#829f0ac50f",

Wyświetl plik

@ -21558,7 +21558,7 @@ apf.window = function(){
canSelect = false;
}
if (amlNode && amlNode.name === "editor::ace") {
if (amlNode && amlNode.name === "editor::ace" || amlNode.class == "c9terminalcontainer") {
canSelect = true;
}