changed: do not put on top upon opening. Allow explore back in history.

This commit is contained in:
quenousimporte 2023-07-05 09:42:33 +02:00
parent 3c8f6a079b
commit 6c2ed80992
1 changed files with 7 additions and 2 deletions

View File

@ -1536,7 +1536,11 @@ function loadlast()
function loadprevious()
{
loadnote(list()[1]);
var index = localdata.indexOf(currentnote);
if (index > -1)
{
loadnote(localdata[index + 1].title);
}
}
function grep(needle)
@ -1834,6 +1838,7 @@ function save()
.then(() =>
{
console.log("...data saved on server");
putontop();
saved = true;
})
.catch(remotecallfailed)
@ -1854,6 +1859,7 @@ function save()
}
else
{
putontop();
saved = true;
}
}
@ -2395,7 +2401,6 @@ function loadnote(name)
}
bindfile(note);
putontop();
stat.cur.q = 0;
stat.cur.d = 0;