Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

blogh
Copy link
Collaborator

@blogh blogh commented Dec 13, 2021

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.

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.
@dlax
Copy link
Member

dlax commented Dec 14, 2021

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
Copy link
Member

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?

Copy link
Collaborator Author

@blogh blogh Dec 14, 2021

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.

@blogh
Copy link
Collaborator Author

blogh commented Dec 14, 2021

The active line is always on the top of the screen.
In a way, pressing "down" moves all the line up. (it's ugly but I don't see how to do it otherwise with the current @limit machinery.)
When all line are exhausted, we go back to the first line. (we could remove this.)

@dlax
Copy link
Member

dlax commented Dec 14, 2021

Ah, I see, I missed that... I probably need to think more about the issue now.

@dlax dlax mentioned this pull request Dec 16, 2021
@dlax dlax linked an issue Dec 16, 2021 that may be closed by this pull request
@blogh
Copy link
Collaborator Author

blogh commented Jan 14, 2022

Replaced by #268

@blogh blogh closed this Jan 14, 2022
@blogh blogh deleted the fix_scrolling_issues_4 branch September 16, 2022 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scrolling and wrapping
2 participants