Skip to content

Commit

Permalink
Fix error related with "New: Returning to a node now retrieves the ex…
Browse files Browse the repository at this point in the history
…act position in the editor, including status bar scrolling"

(Commit dd194bc)
  • Loading branch information
dpradov committed Mar 17, 2024
1 parent f35695e commit f633ef1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion structure/kn_TreeNoteMng.pas
Expand Up @@ -415,7 +415,8 @@ procedure TreeNodeSelected( Node : TTreeNTNode; OnDeletingNode: boolean= false )
myTreeNote := TTreeNote( ActiveNote );
KeepModified:= false;

myTreeNote.SelectedNode.ScrollPosInEditor:= ActiveNote.Editor.GetScrollPosInEditor;
if assigned(myTreeNote.SelectedNode) then
myTreeNote.SelectedNode.ScrollPosInEditor:= ActiveNote.Editor.GetScrollPosInEditor;

if ( not _Executing_History_Jump ) and (not _Executing_JumpToKNTLocation_ToOtherNote) then begin
AddHistoryLocation( myTreeNote, false); // Add to history the location of current node, before the new node comes to be the selected node
Expand Down

0 comments on commit f633ef1

Please sign in to comment.