Auto-indent lines on move line(s) should be in same operation

This commit is contained in:
mattpass
2020-10-04 08:56:25 +01:00
parent b574ce0e6c
commit d3b3715384

View File

@@ -1166,11 +1166,10 @@ var ICEcoder = {
{line: lineStart.line + ("up" === dir ? -1 : 1), ch: lineStart.ch},
{line: lineEnd.line + ("up" === dir ? -1 : 1), ch: lineEnd.ch}
);
// Auto-indent the lines we're moving (but not the swapped line)
ICEcoder.autoIndentLines(lineStart.line - ("up" === dir ? 1 : -1), lineEnd.line + ("up" === dir ? -1 : 1));
})
}
// Auto-indent the lines we're moving (but not the swapped line)
this.autoIndentLines(lineStart.line - ("up" === dir ? 1 : -1), lineEnd.line + ("up" === dir ? -1 : 1));
},
// Highlight specified line