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