diff --git a/main.js b/main.js index c0f06dc..23fe874 100644 --- a/main.js +++ b/main.js @@ -1319,6 +1319,10 @@ function indexheader(content) if (key == "tags") { val = val.split(",").map(t => t.trim()); + if (val.length == 1 && !val[0]) + { + val.pop(); + } } indexedheader[key] = val; } @@ -2939,7 +2943,7 @@ function bind(title, content, pos) var changed = title.value != title; backup = content; - title.value = title; + window.title.value = title; setwindowtitle(); seteditorcontent(content || "", true);