diff --git a/main.js b/main.js index 00b8576..dbae67e 100644 --- a/main.js +++ b/main.js @@ -1321,7 +1321,8 @@ function loadstorage() currentnote = getnote(title); 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); } }