changed: absolute cursor pos in info
fixed: cursor pos upon opening (modulo header)
This commit is contained in:
parent
a9722c1cd8
commit
5536821d2e
6
main.js
6
main.js
|
@ -516,7 +516,7 @@ function showinfo()
|
||||||
[
|
[
|
||||||
"saved: " + saved,
|
"saved: " + saved,
|
||||||
"title: " + currentnote.title,
|
"title: " + currentnote.title,
|
||||||
"cursor position: " + (100 * md.selectionStart / md.value.length).toFixed(2) + "%",
|
"cursor position: " + md.selectionStart + " (" + (100 * md.selectionStart / md.value.length).toFixed(2) + "%)",
|
||||||
"vault: " + currentvault,
|
"vault: " + currentvault,
|
||||||
(tags ? "tags: " + tags : ""),
|
(tags ? "tags: " + tags : ""),
|
||||||
"spell check: " + (md.spellcheck ? "en" : "dis") + "abled",
|
"spell check: " + (md.spellcheck ? "en" : "dis") + "abled",
|
||||||
|
@ -2389,8 +2389,6 @@ function bindfile(note)
|
||||||
}
|
}
|
||||||
resize();
|
resize();
|
||||||
|
|
||||||
setpos(note.pos || 0);
|
|
||||||
|
|
||||||
// to improve...
|
// to improve...
|
||||||
if (!issplit() && searchdialog.hidden)
|
if (!issplit() && searchdialog.hidden)
|
||||||
{
|
{
|
||||||
|
@ -2402,6 +2400,8 @@ function bindfile(note)
|
||||||
{
|
{
|
||||||
toggleheader();
|
toggleheader();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setpos(note.pos || 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadnote(name)
|
function loadnote(name)
|
||||||
|
|
Loading…
Reference in New Issue