clear errror details on BufLeave
Merge pull request #769 from kjnilsson/master

clear errror details on BufLeave