commit 02a74b53e44f8ba0e628fa5857c930f436c8e581 from: Omar Polo date: Thu Jul 01 15:40:53 2021 UTC drop unnecessary restore_cursor calls commit - 13e8b82fd7bc45a253d9907709de8bfef04d9a9f commit + 02a74b53e44f8ba0e628fa5857c930f436c8e581 blob - 26c7f54b8c4ea2afa5447010e4c90212f3210cee blob + ecec3c4b0de9dec0998e41844a293067f80e08c1 --- ui.c +++ ui.c @@ -977,8 +977,6 @@ redraw_tab(struct tab *tab) redraw_help(); wnoutrefresh(help); } - - restore_cursor(&tab->buffer); redraw_tabline(); redraw_body(tab); @@ -1391,10 +1389,9 @@ void ui_on_tab_refresh(struct tab *tab) { wrap_page(&tab->buffer, body_cols); - if (tab->flags & TAB_CURRENT) { - restore_cursor(&tab->buffer); + if (tab->flags & TAB_CURRENT) redraw_tab(tab); - } else + else tab->flags |= TAB_URGENT; }