if (sh != LINES - 1 || sw != SidebarWidth) {
wresize(sidebar_w, LINES - 1, SidebarWidth);
wresize(main_w, LINES - 1, COLS - SidebarWidth);
if (sh != LINES - 1 || sw != SidebarWidth) {
wresize(sidebar_w, LINES - 1, SidebarWidth);
wresize(main_w, LINES - 1, COLS - SidebarWidth);