Skip to content

Commit ff489d3

Browse files
midichefanjakefala
authored andcommitted
[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.
1 parent 37f0a0c commit ff489d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

visidata/help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def draw(self, scr, x=None, y=None, **kwargs):
135135
self.scr.erase()
136136
self.scr.box()
137137
self.amgr.draw(self.scr, y=1, x=2, **kwargs)
138-
self.scr.refresh()
138+
self.scr.noutrefresh()
139139

140140

141141
@VisiData.api

visidata/sidebar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def drawSidebarText(sheet, scr, text:Union[None,str,'HelpPane'], title:str='', o
191191
if bottommsg:
192192
clipdraw(sidebarscr, h-1, winw-dispwidth(bottommsg)-4, '|'+bottommsg+'|', cattr)
193193

194-
sidebarscr.refresh()
194+
sidebarscr.noutrefresh()
195195

196196

197197
@VisiData.api

0 commit comments

Comments
 (0)