Fix window resizing with <c-f10>