xtermjs / xterm.js

A terminal for the web
https://xtermjs.org/
MIT License
17.8k stars 1.64k forks source link

Consider making the canvas selection further right to the overview ruler/scroll bar #5097

Open Tyriar opened 4 months ago

Tyriar commented 4 months ago

After https://github.com/xtermjs/xterm.js/pull/5096 the scroll bar is presented consistently across all browsers. It would look more polished if we extended selections that wrap across lines up to the scroll bar.

So instead of this:

image

Do this:

image

Doing so should make resizing horizontally feel smoother:

Recording 2024-07-10 at 07 21 02

This will involve extending the size of the canvas a little.

Tyriar commented 4 months ago

Note that this also makes sense as it's like how editors often show that the trailing \n is selected:

image