Select the entire folder name on rename.

This fixes issue #10155.

cc @dangoor @peterflynn