Scroll on cursor movement

This commit is contained in:
Jeremy Soller 2022-10-18 13:05:36 -06:00
parent 3e04ffdfa4
commit a599d83ca0
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
2 changed files with 24 additions and 7 deletions

View file

@ -73,7 +73,7 @@ where
) {
let buffer = self.buffer.read().unwrap();
let font_size = buffer.font_size();
let line_height = font_size + 8; /*TODO: store somewhere else */
let line_height = buffer.line_height();
let instant = Instant::now();