[BUGFIX] update editor with latest changes

Add blank line after task if on last line
Structure watching to avoid frank's bug