From 65d2007499fcd0fab7aa23ddf84c68dcae6e0279 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Mon, 23 Jan 2023 12:59:46 +0100 Subject: [PATCH] fiixed: tag case on ctrl+click --- main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 358ef7a..90ff4c2 100644 --- a/main.js +++ b/main.js @@ -434,7 +434,7 @@ function clickeditor() else if (tag) { tagslist(); - searchinlist(tags[tag]) + searchinlist(tags[tag.toLowerCase()]) .then(loadnote); } else @@ -616,6 +616,7 @@ function save() } else { + currentnote.pos = md.selectionStart; currentnote.content = content; window.localStorage.setItem(currentvault, JSON.stringify(localdata)); @@ -1732,7 +1733,7 @@ function bindfile(note) resetfolds(); resize(); - setpos(0); + setpos(note.pos || 0); // to improve... if (!issplit())