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

Commit 4b923df

Browse files
author
mattpass
committed
Format tweaks to cMonPaste function
1 parent dccfd0a commit 4b923df

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

assets/js/icecoder.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -668,14 +668,14 @@ var ICEcoder = {
668668
cMonPaste: function(thisCM, cMinstance, evt, clipboardData) {
669669
// Get text from clipboard, the number of lines (excluding last)
670670
// and so the startLine and endLine and auto-indent for that range
671-
const text = clipboardData.getData('Text');
672-
const num = text.split("\n").length - 1;
673-
const startLine = thisCM.getCursor().line;
671+
const text = clipboardData.getData('Text');
672+
const num = text.split("\n").length - 1;
673+
const startLine = thisCM.getCursor().line;
674674
const endLine = startLine + num;
675675
// Now auto-indent after a 0ms tickover
676-
setTimeout(() => {
677-
parent.ICEcoder.autoIndentLines(startLine, endLine);
678-
}, 0);
676+
setTimeout(() => {
677+
parent.ICEcoder.autoIndentLines(startLine, endLine);
678+
}, 0);
679679
},
680680

681681
// On context menu

0 commit comments

Comments
 (0)