highlight cursor in character panel

This commit is contained in:
alice pellerin
2026-03-18 03:27:56 -05:00
parent c503d32b20
commit 98f4c56852
3 changed files with 36 additions and 23 deletions
+2 -2
View File
@@ -251,14 +251,14 @@ impl App {
self.cursor.head = min(
self.cursor.head + BYTES_PER_LINE,
self.contents.len() - 1
)
);
} else {
self.cursor.tail -= self.cursor.tail % BYTES_PER_LINE;
self.cursor.head += BYTES_PER_LINE - 1 - (self.cursor.head % BYTES_PER_LINE);
}
}
fn extend_line_above(&mut self) {
const fn extend_line_above(&mut self) {
if self.cursor.head > self.cursor.tail {
swap(&mut self.cursor.head, &mut self.cursor.tail);
}