/* runs when footer text deleted */ wsdelfooter(h) { /* find window margin text */ handles = findtext("tag", "ws_footer"); if (length(handles) == 1 && h == handles[1]) { setwsy(-1, 1); } }