diff --git a/src/static/js/pad_editor.js b/src/static/js/pad_editor.js index 0ee325b4b..1c7a4b33c 100644 --- a/src/static/js/pad_editor.js +++ b/src/static/js/pad_editor.js @@ -46,6 +46,7 @@ const padeditor = (() => { $outerdoc.find('#sidedivinner').on('click', 'div', function () { const targetLineNumber = $(this).index() + 1; window.location.hash = `L${targetLineNumber}`; + focusOnLine(self.ace); }); focusOnLine(self.ace); self.ace.setProperty('wraps', true);