From 5bc4638d3ac80453f905a031a39b881e17ebd495 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 4 Apr 2021 02:22:04 -0400 Subject: [PATCH] pad_editor: Call `focusOnLine()` on line number click --- src/static/js/pad_editor.js | 1 + 1 file changed, 1 insertion(+) 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);