fix: scroll to cursor when opening

This commit is contained in:
quenousimporte 2023-12-08 14:23:05 +01:00
parent 968df214f7
commit 207cd570e8
1 changed files with 4 additions and 3 deletions

View File

@ -2968,13 +2968,14 @@ function bindfile(note)
}
resize();
// to improve...
setpos(note.pos || 0);
if (!issplit() && searchdialog.hidden)
{
// force to scroll to cursor pos
md.blur();
md.focus();
}
setpos(note.pos || 0);
}
function defaultheaders(tags = "")