mirror of https://github.com/helix-editor/helix
Fix panic when drawing at the edge of the screen. (#11737)
When pressing tab at the edge of the screen, Helix panics in debug mode subtracting position.col - self.offset.col. To correctly account for graphemes that are partially visible, column_in_bounds takes a width and returns whether the whole range is in bounds. Co-authored-by: Rose Hogenson <rosehogenson@posteo.net>pull/11748/head
parent
8b1764d164
commit
73deabaa40
Loading…
Reference in New Issue