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 for #98 #101

Merged
merged 1 commit into from
Mar 18, 2018
Merged

Fix for #98 #101

merged 1 commit into from
Mar 18, 2018

Conversation

filimonov
Copy link
Contributor

@filimonov filimonov commented Mar 10, 2018

Changing the approach of fixing #71
(introduced by 0e4af13).

Instead of 'decreasing' screen width for cases when cursor take extra column, increment the calculated user input length.

With correct screen width multiline mode works properly.

Changing the approach of fixing peterh#71
(introduced by 0e4af13).

Instead of 'decreasing' screen width for cases when cursor which take extra
column, increase the buffer size.

With correct screen width multiline mode works properly.
@filimonov filimonov changed the title Fix for https://github.com/peterh/liner/issues/98 Fix for #98 Mar 10, 2018
@filimonov
Copy link
Contributor Author

filimonov commented Mar 12, 2018

Now there are issues in multiline mode on the end of the screen. I will try do git it deeper.

UPD: hmm... heisenbug. Yesterday i suddenly start getting problems with cursor placement on Windows. Today (the same binary, under the same conditions) - everything works properly. May be some misbehaviour of windows console itself?

@peterh peterh merged commit 6106ee4 into peterh:master Mar 18, 2018
@peterh
Copy link
Owner

peterh commented Mar 18, 2018

Thanks for the patch.

Heisenbug or not, I like the approach of incrementing the calculated length instead of decrementing the detected width, so I pulled.

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.

None yet

2 participants