mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-06 08:44:02 +01:00
Format tweaks to cMonPaste function
This commit is contained in:
@@ -668,14 +668,14 @@ var ICEcoder = {
|
||||
cMonPaste: function(thisCM, cMinstance, evt, clipboardData) {
|
||||
// Get text from clipboard, the number of lines (excluding last)
|
||||
// and so the startLine and endLine and auto-indent for that range
|
||||
const text = clipboardData.getData('Text');
|
||||
const num = text.split("\n").length - 1;
|
||||
const startLine = thisCM.getCursor().line;
|
||||
const text = clipboardData.getData('Text');
|
||||
const num = text.split("\n").length - 1;
|
||||
const startLine = thisCM.getCursor().line;
|
||||
const endLine = startLine + num;
|
||||
// Now auto-indent after a 0ms tickover
|
||||
setTimeout(() => {
|
||||
parent.ICEcoder.autoIndentLines(startLine, endLine);
|
||||
}, 0);
|
||||
setTimeout(() => {
|
||||
parent.ICEcoder.autoIndentLines(startLine, endLine);
|
||||
}, 0);
|
||||
},
|
||||
|
||||
// On context menu
|
||||
|
||||
Reference in New Issue
Block a user