fixed: cursor pos when creating note with tags in url

This commit is contained in:
quenousimporte 2023-10-02 12:50:41 +02:00
parent 05b438714e
commit 65f55a65e8
1 changed files with 2 additions and 1 deletions

View File

@ -1321,7 +1321,8 @@ function loadstorage()
currentnote = getnote(title); currentnote = getnote(title);
if (!currentnote) if (!currentnote)
{ {
currentnote = {title: title, content: defaultheaders(title, tags)}; var newcontent = defaultheaders(title, tags);
currentnote = {title: title, content: newcontent, pos: newcontent.length};
localdata.unshift(currentnote); localdata.unshift(currentnote);
} }
} }