mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-06 08:44:02 +01:00
Auto-indent lines on move line(s) should be in same operation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user