Editor: remove unused cursor_x_opt
This commit is contained in:
parent
b877f873df
commit
e7261fc06e
1 changed files with 0 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue