fix emacs cut command

This commit is contained in:
nightwing 2012-09-09 16:04:23 +04:00
commit e0318e39c9
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ var EventEmitter = require("../lib/event_emitter").EventEmitter;
var CommandManager = function(platform, commands) {
this.platform = platform;
this.commands = {};
this.commands = this.byName = {};
this.commmandKeyBinding = {};
this.addCommands(commands);

View file

@ -338,7 +338,7 @@ exports.handler.addCommands({
},
killRegion: function(editor) {
exports.killRing.add(editor.getCopyText());
editor.cut();
editor.commands.byName.cut.exec(editor);
},
killRingSave: function(editor) {
exports.killRing.add(editor.getCopyText());