Skip to content

Commit

Permalink
Fix wrong line highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
ORDRONNEAU Camille authored and ORDRONNEAU Camille committed Apr 3, 2024
1 parent 34d436f commit a0f0554
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/ui/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,19 +317,9 @@ function function3() {


function getEditorCode() {
<<<<<<< HEAD
// currentTextValue.shift(); // no need to shift, we want the whole code everytime
console.log(currentTextValue.map(function (x) {
return x.replaceAll("\n", "");
}));
return currentTextValue.map(function (x) {
return x.replaceAll("\n", "");
}).join("\n");
=======
currentTextValue.shift() // necessary, as the editor always add a newline
console.log(currentTextValue);
return currentTextValue.join("\n");
>>>>>>> e72278bb15830c21aef58db4c260059fcb657be4
}


Expand Down

0 comments on commit a0f0554

Please sign in to comment.