mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Rerender views if necessary when scrolling horizontally
If the context says it wants to rerender when its width changes, we must also rerender when the horizontal scroll position changes.
This commit is contained in:
parent
9e3e1a7b3a
commit
fa9d75835c
1 changed files with 3 additions and 0 deletions
|
@ -74,6 +74,9 @@ func (self *ListController) scrollHorizontal(scrollFunc func()) error {
|
|||
scrollFunc()
|
||||
|
||||
self.context.HandleFocus(types.OnFocusOpts{})
|
||||
if self.context.NeedsRerenderOnWidthChange() == types.NEEDS_RERENDER_ON_WIDTH_CHANGE_WHEN_WIDTH_CHANGES {
|
||||
self.context.HandleRender()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue