Skip to content

Commit

Permalink
CE: Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jxarco committed Jan 30, 2024
1 parent 8310ed3 commit 9277405
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/components/codeeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ class CodeEditor {
this.tabSpaces = 4;
this.maxUndoSteps = 16;
this.lineHeight = 20;
this.charWidth = 7; // To update later depending on size..
this.defaultSingleLineCommentToken = '//';
this.defaultBlockCommentTokens = [ '/*', '*/' ];
this._lastTime = null;
Expand Down Expand Up @@ -986,7 +987,7 @@ class CodeEditor {

// Nothing to do..
if( cursor.line == this.code.lines.length - 1 &&
cursor.position == this.code.lines[ cursor.line - 1 ].length )
cursor.position == this.code.lines[ cursor.line ].length )
return;

if( e.metaKey ) { // Apple devices (Command)
Expand Down

0 comments on commit 9277405

Please sign in to comment.