fix emacs cut command
This commit is contained in:
parent
393e42b439
commit
e0318e39c9
2 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ var EventEmitter = require("../lib/event_emitter").EventEmitter;
|
||||||
|
|
||||||
var CommandManager = function(platform, commands) {
|
var CommandManager = function(platform, commands) {
|
||||||
this.platform = platform;
|
this.platform = platform;
|
||||||
this.commands = {};
|
this.commands = this.byName = {};
|
||||||
this.commmandKeyBinding = {};
|
this.commmandKeyBinding = {};
|
||||||
|
|
||||||
this.addCommands(commands);
|
this.addCommands(commands);
|
||||||
|
|
|
||||||
|
|
@ -338,7 +338,7 @@ exports.handler.addCommands({
|
||||||
},
|
},
|
||||||
killRegion: function(editor) {
|
killRegion: function(editor) {
|
||||||
exports.killRing.add(editor.getCopyText());
|
exports.killRing.add(editor.getCopyText());
|
||||||
editor.cut();
|
editor.commands.byName.cut.exec(editor);
|
||||||
},
|
},
|
||||||
killRingSave: function(editor) {
|
killRingSave: function(editor) {
|
||||||
exports.killRing.add(editor.getCopyText());
|
exports.killRing.add(editor.getCopyText());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue