Bug 1231362 - Part 2: Upgrade existing CodeMirror keymap to 5.9.0 r=bgrins

This commit is contained in:
Gabriel Luong 2015-12-09 11:27:00 -08:00
parent 3a308f2bed
commit 0b81ed7872
2 changed files with 4 additions and 2 deletions

View File

@ -240,7 +240,9 @@
});
};
map[ctrl + "/"] = "toggleComment";
map[ctrl + "/"] = function(cm) {
cm.toggleComment({ indent: true });
}
cmds[map[ctrl + "J"] = "joinLines"] = function(cm) {
var ranges = cm.listSelections(), joined = [];

View File

@ -3208,7 +3208,7 @@
return cur;
}
/*
/**
* Returns the boundaries of the next word. If the cursor in the middle of
* the word, then returns the boundaries of the current word, starting at
* the cursor. If the cursor is at the start/end of a word, and we are going