From 3ad399c52417a106666682f724426a8ea627ff18 Mon Sep 17 00:00:00 2001 From: AlexandreDoneux <94830560+AlexandreDoneux@users.noreply.github.com> Date: Tue, 6 Feb 2024 08:40:22 +0100 Subject: [PATCH] [frontend/common] Fixing code offset increment --- inginious/frontend/static/js/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inginious/frontend/static/js/common.js b/inginious/frontend/static/js/common.js index c88b74582..34ae01ccd 100644 --- a/inginious/frontend/static/js/common.js +++ b/inginious/frontend/static/js/common.js @@ -81,7 +81,7 @@ function registerCodeEditor(textarea, lang, lines, firstline=1) var editor = CodeMirror.fromTextArea(textarea, { lineNumbers: true, - firstLineNumber: firstline, + firstLineNumber: parseInt(firstline), mode: mode["mime"], foldGutter: true, styleActiveLine: true,