-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Error after resizing both row and column at the same time. #860
Comments
Thanks for reporting this! I was able to reproduce in the demo. |
This will most probably make the cut for |
Thanks! In the meantime, I am working around the issue with two calls to term.resize() so there isn't a rush for a fix on my side. |
This appears to be the bug I have with 2.9.1. You can reproduce it quite easily by going here |
Repro using demo: |
I know why it's happening, PR coming soon. |
This happened because buffers now resize themselves but they were relying on Terminal to give them a blank line. The blank line was coming back with the old columns value, causing an NPE. Fixes xtermjs#860
In the case the terminal row and column are increased at the same time (calling term.resize() once), only the existing rows have their number of characters increased. The new rows are created with the previous number of columns. It seems to be a regression compared to xterm.js 2.9.0.
At the first refresh of the terminal, the error reported in the browser console is:
Uncaught TypeError: Cannot read property '0' of undefined
at Renderer.10.Renderer._refresh (Renderer.ts:170)
at Renderer.10.Renderer._refreshLoop (Renderer.ts:99)
Details
Steps to reproduce
The text was updated successfully, but these errors were encountered: