fixed 'delete buffer'. fixed formatting: formatprg is only global