Skip to content

Commit

Permalink
Merge pull request #180 from smarq8/master
Browse files Browse the repository at this point in the history
Wrong scroll pos after switching file. Programmed by smarq8
  • Loading branch information
maestrith authored Jul 23, 2018
2 parents 3c8b949 + 78cb026 commit d10faf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AHK-Studio.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -11677,7 +11677,7 @@ tv(tv*){
if(pos.fold!="")
for a,b in StrSplit(pos.fold,",")
sc.2237(b,0)
(pos.scroll!="")?sc.2613(pos.scroll):"",(pos.start||pos.end)?sc.2160(pos.start,pos.end):""
(pos.start||pos.end)?sc.2160(pos.end,pos.start):"",(pos.scroll!="")?sc.2613(pos.scroll):"" ; FIXED - scroll pos after switching file
}sc.Enable(1),Node:=gui.SSN("//*[@hwnd='" sc.sc+0 "']"),Node.SetAttribute("file",ea.file)
}else if(tv.2.end!="")
pos:=tv.2,sc.2160(pos.start,pos.end),CenterSel()
Expand Down Expand Up @@ -13612,7 +13612,7 @@ Start_Select_Character(){
}
Clear_History(){
History.XML.XML.LoadXML("<History/>"),sc:=CSC(),History.Add(cexml.EA("//*[@sc='" sc.2357 "']"),sc,1)
}
}
DebugWindow(Text,Clear:=0,LineBreak:=0,Sleep:=0,AutoHide:=0,MsgBox:=0){
x:=ComObjActive("{DBD5A90A-A85C-11E4-B0C7-43449580656B}"),x.DebugWindow(Text,Clear,LineBreak,Sleep,AutoHide,MsgBox)
}
}

0 comments on commit d10faf1

Please sign in to comment.