fix: scroll to cursor when opening
This commit is contained in:
parent
968df214f7
commit
207cd570e8
1 changed files with 4 additions and 3 deletions
7
main.js
7
main.js
|
|
@ -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 = "")
|
||||
|
|
|
|||
Loading…
Reference in a new issue