GNOME Bugzilla – Bug 756058
Extending selection with different font doesn't work
Last modified: 2018-11-07 13:13:42 UTC
Select some parts with the mouse. Change the font size. Extend the selection with Shift+click -> buggy. This is because selection_origin and selection_last contain mouse click coordinates in pixels. (The y coordinate is actually relative to the beginning of the history (similarly to insert_delta), but in pixels.) A quick hackish solution could be to adjust them on font change. A cleaner (?) solution could be to convert them to row/column numbers as floats, similarly to the new smooth scroll_delta.
Using grid coordinates sounds better to me. Not sure it needs to be float, since selection can only be entire cells.
Not sure what and how we're using these values for; maybe we need to remember the values with half-cell granularity as per bug 755183 comment 2. Maybe not.
Will probably get fixed as part of https://gitlab.gnome.org/GNOME/vte/issues/34.
Fixed as part of https://gitlab.gnome.org/GNOME/vte/issues/34.