editbox: reset additional variables for new program

the extra selections, line count, modified line and modified list is
new variables also need to be reset when the document is cleared; also
removed an unused member variable