-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix scrolling when wrapping is involved #257
Conversation
With a wrapped display mode the current display is bugged. If some queries are wrapped before the line we put the focus on. It's possible that the said line is out of the screen. With this patch, the line with the focus is the always the first one. When a the focus is on a selected line, the text is now bold with a lighter brand of cyan. It is otherwise difficult to see if the first ligne of the display is selected since it always has the focus.
c87f831
to
bdb6f5c
Compare
There is something wrong when scrolling with arrows: the list of processes decreases until it gets restored when getting empty. |
@@ -996,7 +995,6 @@ PostgreSQL ... - test - [email protected]:.../tests - Ref.: 2s | |||
Size: 106.07M - 0B/s ⋅ TPS: 0 ⋅ Active connections: 2 ⋅ Duration mode: query | |||
RUNNING QUERIES | |||
PID DATABASE state Query | |||
... tests idle in trans SELECT 43 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why these changes in tests? Is it related to the scrolling issue mentioned in my other comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, the line is outside the screen.
The active line is always on the top of the screen. |
Ah, I see, I missed that... I probably need to think more about the issue now. |
Replaced by #268 |
With a wrapped display mode the current display is bugged. If some
queries are wrapped before the line we put the focus on. It's possible
that the said line is out of the screen.
With this patch, the line with the focus is the always the first one.
When a the focus is on a selected line, the text is now bold with a
lighter brand of cyan. It is otherwise difficult to see if the first
ligne of the display is selected since it always has the focus.