The 'format' command is split into two, 'format-selections' and 'format-buffer' which relies on the former.
Closes #2783