Skip to content

Commit

Permalink
Fix random jumps when moving cursor in TUI repository table (bsc#1177…
Browse files Browse the repository at this point in the history
…145)

In ncurses, ChangeWidget(:table, :CurrentItem, ...) will be wrong for sorted
tables (which is the default now).
It is related to the ChangeWidget(:table, Cell(.., ..), ...) bug, bsc#1165388

This is a workaround: removing the unnecessary ChangeWidget.
  • Loading branch information
mvidner committed Oct 8, 2020
1 parent 93adcd5 commit 8e816c4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib/packager/clients/repositories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1039,10 +1039,8 @@ def SummaryDialog

exit = false
begin
if !current.nil? && Ops.greater_or_equal(current, 0)
UI.ChangeWidget(Id(:table), :CurrentItem, current)
fillCurrentRepoInfo
end
current = -1 if current.nil?
fillCurrentRepoInfo if current >= 0

current = -1

Expand Down

0 comments on commit 8e816c4

Please sign in to comment.