Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit d3b3715

Browse files
author
mattpass
committed
Auto-indent lines on move line(s) should be in same operation
1 parent b574ce0 commit d3b3715

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

assets/js/icecoder.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,11 +1166,10 @@ var ICEcoder = {
11661166
{line: lineStart.line + ("up" === dir ? -1 : 1), ch: lineStart.ch},
11671167
{line: lineEnd.line + ("up" === dir ? -1 : 1), ch: lineEnd.ch}
11681168
);
1169+
// Auto-indent the lines we're moving (but not the swapped line)
1170+
ICEcoder.autoIndentLines(lineStart.line - ("up" === dir ? 1 : -1), lineEnd.line + ("up" === dir ? -1 : 1));
11691171
})
11701172
}
1171-
1172-
// Auto-indent the lines we're moving (but not the swapped line)
1173-
this.autoIndentLines(lineStart.line - ("up" === dir ? 1 : -1), lineEnd.line + ("up" === dir ? -1 : 1));
11741173
},
11751174

11761175
// Highlight specified line

0 commit comments

Comments
 (0)