提交 81a86554 编写于 作者: B Benjamin Pasero

Forward command does not reset after changing files (fixes #6597)

上级 bb3354ff
......@@ -347,6 +347,11 @@ export class HistoryService extends BaseHistoryService implements IHistoryServic
options: options
};
// If we are not at the end of history, we remove anything after
if (this.stack.length > this.index + 1) {
this.stack = this.stack.slice(0, this.index + 1);
}
// Replace at current position
if (replace) {
this.stack[this.index] = entry;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册