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 incorrect scrolling when Wrap is set to true #97

Merged
merged 2 commits into from
Jul 20, 2021

Conversation

dankox
Copy link

@dankox dankox commented Jul 15, 2021

Fprint into the View doesn't scroll correctly content if Autoscroll and Wrap are turned on.

It's caused by using incorrect slice when checking length of lines if the content should be scrolled and how much.

There is new test for this called wrap_autorscroll.go which adds content to the view when hitting Tab key.

Fprint into the View doesn't scroll correctly content if `Autoscroll` and
`Wrap` are turned on.
It's caused when checking buffer lines while using incorrect slice.
@dankox dankox requested review from mjarkk and glvr182 July 15, 2021 22:07
This example just test the autorscroll and wrap together.
This can be recreated by using `active.go` or `custom_frames.go`
example and resize terminal so the text in the second view
will be forced to wrap.
@mjarkk mjarkk merged commit 36a6087 into awesome-gocui:master Jul 20, 2021
@dankox dankox deleted the fix/incorrect-autorscroll-wrap branch July 22, 2021 13:10
@jon4hz
Copy link

jon4hz commented Jul 25, 2021

could you please make a new release with this fix?

@mjarkk
Copy link
Member

mjarkk commented Jul 25, 2021

Ofc, here you go v1.0.1

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.

3 participants