fix of the cursor if the line passed is too great
fix cursor if the line passed is too small
added the userdata dir for the distant editing
added exec command WriteDistantFile