Uh oh!
There was an error while loading. Please reload this page.
Fix crash and rendering where large content is pasted to console on non-Windows - #691
Fix crash and rendering where large content is pasted to console on non-Windows#691Steve Lee (SteveL-MSFT) wants to merge 2 commits into
Conversation
Jason Shirk (lzybkr)
commented
May 30, 2018
I think the changes are fine, I'll try them out for a bit before merging. Are you also going to fix |
Jason Shirk (@lzybkr) that's a separate issue (able to repro with a large directory listing with my changes). I'll look at it in between other work as a separate PR. |
Jason Shirk (lzybkr)
commented
Jun 4, 2018
I'm on the fence with this fix. I'm not sure Rendering is also still broken if you scroll up, e.g. press I think I've known about this general problem for so long that I'd forgotten about it, so it seems to come up rarely. Is it now more important in some scenario I wasn't aware of? If not, I might be OK with the exception until the scenario is fixed completely. Of course at that point, we almost have a real text editor. |
Steve Lee (SteveL-MSFT)
commented
Jun 4, 2018
Jason Shirk (@lzybkr) it comes up easily on non-Windows when pasting a large script |
Jason Shirk (lzybkr)
commented
Jun 5, 2018
It happens easily on Windows as well, but you need a small window. For my education and to better understand an appropriate fix - when are small console windows normally hit on non-Windows? I know that with no gui the window is small, but where else? |
Steve Lee (SteveL-MSFT)
commented
Jun 5, 2018
The default terminal size on Ubuntu is 80x24. |
Jason Shirk (lzybkr)
commented
Jun 5, 2018
Maybe it's reasonable to disallow a command line that exceeds the buffer height, at least until you can actually edit it properly. |
Steve Lee (SteveL-MSFT)
commented
Jun 26, 2018
Jason Shirk (@lzybkr) I think we should take this fix as even if you can't edit the buffer, it does show the syntax highlighting correctly making it easier to read. If you think we should explicitly disallow editing, I think we should have that as a separate issue. This PR does fix the current issue of an unhandled exception. |
Jason Shirk (lzybkr)
commented
Jun 26, 2018
I'm still on the fence about allowing |
Steve Lee (SteveL-MSFT)
commented
Jun 26, 2018
There aren't too many references to |
Jason Shirk (lzybkr)
commented
Jun 26, 2018
If we decide a negative |
Jason Shirk (lzybkr)
commented
Jun 26, 2018
It would be good to add a test as well. The current console proxy does use a fixed buffer, but it might need some improvements to handle this scenario. |
…than console and also causes the screen buffer to scroll
6b3b7fc to
4aebcddCompareDongbo Wang (daxian-dbw)
commented
Sep 12, 2019
#979 has been merged as a more general fix to the |
Several issues:
Fix#663