Skip to content

Commit

Permalink
[help- sidebar-] prevent sidebar flicker #2630
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
midichef authored and anjakefala committed Dec 9, 2024
1 parent 37f0a0c commit ff489d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion visidata/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion visidata/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff489d3

Please sign in to comment.