detect lazyredraw and handle accordingly