Attempted Late-Night fix for edit.lua (Issue #39) 

Sorry if its wrong. Its late at night and I'm tired.