focus editor when clicking section name

This commit is contained in:
tophf 2021-09-21 10:12:58 +03:00
parent 349a8c3878
commit 58ad6f64d6

View File

@ -57,6 +57,7 @@ function SourceEditor() {
if (sec) { if (sec) {
sectionFinder.updatePositions(sec); sectionFinder.updatePositions(sec);
cm.jumpToPos(sec.start); cm.jumpToPos(sec.start);
cm.focus();
} }
}, },
async save() { async save() {