Fixed deleting 'dynamic words' when multiple lines are removed.
Added unfolding modified lines to avoid leaving hidden lines in the editor.