From ff489d3717a817a0a04a9cc0b48d5c19ea5e540c Mon Sep 17 00:00:00 2001 From: midichef <67946319+midichef@users.noreply.github.com> Date: Sat, 7 Dec 2024 00:43:40 -0800 Subject: [PATCH] [help- sidebar-] prevent sidebar flicker #2630 The change to drawSidebarText() fixes flicker of the cursor next to the sidebar title. The change to HelpPane.draw() fixes flicker in the title of the 'Input Keystrokes Help' pane. --- visidata/help.py | 2 +- visidata/sidebar.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/visidata/help.py b/visidata/help.py index 2c8e1a46c..e5bb4765d 100644 --- a/visidata/help.py +++ b/visidata/help.py @@ -135,7 +135,7 @@ def draw(self, scr, x=None, y=None, **kwargs): self.scr.erase() self.scr.box() self.amgr.draw(self.scr, y=1, x=2, **kwargs) - self.scr.refresh() + self.scr.noutrefresh() @VisiData.api diff --git a/visidata/sidebar.py b/visidata/sidebar.py index 23973ff63..8fd6c9abd 100644 --- a/visidata/sidebar.py +++ b/visidata/sidebar.py @@ -191,7 +191,7 @@ def drawSidebarText(sheet, scr, text:Union[None,str,'HelpPane'], title:str='', o if bottommsg: clipdraw(sidebarscr, h-1, winw-dispwidth(bottommsg)-4, '|'+bottommsg+'|', cattr) - sidebarscr.refresh() + sidebarscr.noutrefresh() @VisiData.api