-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 extra newline on windows without decremented width. #601
Fix extra newline on windows without decremented width. #601
Conversation
Hey @leak4mk0, I've been putting aside reviewing this PR for a little while now. I read the code and I don't understand the bug you're having. Can you post screenshots of the behavior before and after? And maybe an example to reproduce the issue you're having? Without this information, I can't really make an informed decision as to merge this PR and if this really is the proper fix for the issue. Thanks |
@leak4mk0 thanks for the explanation. Can you try to make the code a bit more understandable? Right now this is a bit too confusing and quite unclear how it fix the issue. I'd suggest assigning more descriptive variable names, stop using or at least removing nested ternary operators, and maybe split the core logics pieces into many functions. Also, would the bug be fixed on windows if we simply do not insert |
@leak4mk0 thanks! BTW I've made some major code upgrade in the repo today, might have created a few conflicts on your side. |
# Conflicts: # lib/utils/screen-manager.js
I'm sorry for being late.
|
Thanks a lot :) |
Hello,
On Windows, extra newline is inserted if a newline is inserted at the right end of the terminal.
Terminal width is decremented by 1 to avoid this problem now.
I would like to propose a method by moving the cursor.
Thank you.