-
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
Column selection isn't working correctly #3855
Comments
Should be able to write an api test for this |
The "moving to top-right or bottom-left doesn't make a selection" isn't a regression but something that's been in like forever. xterm.js/src/browser/renderer/dom/DomRenderer.ts Lines 334 to 341 in 48b8e31
I couldn't reproduce the other mentioned things in xterm demo, but it definitely exists in vscode. (Notice how alt activates the menu shortcuts in the window bar.) |
@silamon the gif shows it was working before?
Not sure about the corner thing but if it's only in VS Code then chances are it's related to padding around the terminal elements. |
I see that the code has changed for WebGL renderer, so you could be correct that it was working for WebGL before. xterm.js/addons/xterm-addon-webgl/src/WebglRenderer.ts Lines 458 to 459 in 48b8e31
It could be the same thing that I mentioned for DOM renderer now. startCol is higher than endCol for top-right and bottom-left and this only happens in columnSelectMode. |
The following parts were not respecting the column selection edge case where the start column was greater than the end column while the start row was less than the end row: - Webgl renderer - DOM renderer - Selection service (ie. getSelection(), I don't think this was a regression) Fixes xtermjs#3855
Repro: Alt+click and drag in the terminal
Correct behavior in VS Code 1.67.0:
The text was updated successfully, but these errors were encountered: