careful cursor and fix wincmd w (fix #14, fix #16)