修正対象ファイル
/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js
修正内容
History.prototype.beginTransaction = function() {
if (++this.transactionDepth === 1) {
return this.currentTransaction = new Transaction();
}
};
↓↓↓
History.prototype.beginTransaction = function() {
/**
* ここでtransactionDepthを0にしないと、vim-mode利用時の
* undoで変更が前に戻りすぎるというのがおきる
*/
this.transactionDepth = 0;
if (++this.transactionDepth === 1) {
return this.currentTransaction = new Transaction();
}
};
最後に
もっといい方法あれば教えて下さい