1. in Macro, Method document.GetLine can’t get the line of new document. it always get the editor.Documents.Item( currentIndex-1 ) ‘s. For example, there are two documents in the EmEditor, the last one is unsaved. then, if method document.GetLine(yLine) run, it couldn’t return the unsaved document’s yLine content but the last one’s. but editor.ActiveDocument is yet the unsaved document.