We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0579609 commit d592c45Copy full SHA for d592c45
app/assets/javascripts/editor/editor.js
@@ -281,7 +281,7 @@ var CodeOceanEditor = {
281
this.setActiveFile($(element).parent().data('filename'), file_id);
282
283
const full_lines = content.text().split(/\n/);
284
- if (full_lines.length > 1 && full_lines[0] !== "") {
+ if (full_lines.length >= 1 && full_lines[0] !== "") {
285
document.insertFullLines(0, full_lines);
286
// remove last (empty) that is there by default line
287
document.removeFullLines(document.getLength() - 1, document.getLength() - 1);
0 commit comments