pad_editor: Call focusOnLine() on line number click

This commit is contained in:
Richard Hansen 2021-04-04 02:22:04 -04:00
parent f70f3197b6
commit 5bc4638d3a

View file

@ -46,6 +46,7 @@ const padeditor = (() => {
$outerdoc.find('#sidedivinner').on('click', 'div', function () { $outerdoc.find('#sidedivinner').on('click', 'div', function () {
const targetLineNumber = $(this).index() + 1; const targetLineNumber = $(this).index() + 1;
window.location.hash = `L${targetLineNumber}`; window.location.hash = `L${targetLineNumber}`;
focusOnLine(self.ace);
}); });
focusOnLine(self.ace); focusOnLine(self.ace);
self.ace.setProperty('wraps', true); self.ace.setProperty('wraps', true);