Resize selection window to number of lines

Another small tweak to reduce the size of the selection window.