Editor: Request redraw/scroll on set_cursor
This commit is contained in:
parent
37789ccdf7
commit
7526fa9726
1 changed files with 5 additions and 1 deletions
|
|
@ -86,7 +86,11 @@ impl Edit for Editor {
|
|||
}
|
||||
|
||||
fn set_cursor(&mut self, cursor: Cursor) {
|
||||
self.cursor = cursor;
|
||||
if self.cursor != cursor {
|
||||
self.cursor = cursor;
|
||||
self.cursor_moved = true;
|
||||
self.buffer.set_redraw(true);
|
||||
}
|
||||
}
|
||||
|
||||
fn select_opt(&self) -> Option<Cursor> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue