Editor: remove unused cursor_x_opt

This commit is contained in:
Jeremy Soller 2023-12-15 10:19:45 -07:00
parent b877f873df
commit e7261fc06e

View file

@ -17,7 +17,6 @@ use crate::{
pub struct Editor {
buffer: Buffer,
cursor: Cursor,
cursor_x_opt: Option<i32>,
selection: Selection,
cursor_moved: bool,
auto_indent: bool,
@ -31,7 +30,6 @@ impl Editor {
Self {
buffer,
cursor: Cursor::default(),
cursor_x_opt: None,
selection: Selection::None,
cursor_moved: false,
auto_indent: false,
@ -58,7 +56,6 @@ impl Edit for Editor {
if self.cursor != cursor {
self.cursor = cursor;
self.cursor_moved = true;
self.cursor_x_opt = None;
self.buffer.set_redraw(true);
}
}