Revert "Fix for the diff action in the commit window"

This reverts commit 12c87d5058796b895a96fc7c99ed9378bec5d727.