event DocumentSelectionChanged(sFile)

Called when the user selects text, or moves the cursor in the current file. The file name is sFile. This event is handled asynchronously. That is, it is not called as the user moves the cursor. It is called after a moment of idleness. Note because this function is called asynchronously, it is possible the sFile file may not be open, so you need to test the return value of GetBufHandle(sFile) to make sure it is not hNil.