add error message for move_cursor_to_end
This commit is contained in:
parent
1082aa31b4
commit
5780bc221c
@ -634,8 +634,7 @@ impl epi::App for MathApp {
|
|||||||
self.side_panel(ctx);
|
self.side_panel(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Referenced in plotting code, but needs to be here so it can be later
|
// Referenced in plotting code, but needs to be here so it can be later referenced when storing `last_info`
|
||||||
// referenced when storing `last_info`
|
|
||||||
let mut area_list: Vec<Option<f64>> = Vec::new();
|
let mut area_list: Vec<Option<f64>> = Vec::new();
|
||||||
|
|
||||||
// Central panel which contains the central plot (or an error created when
|
// Central panel which contains the central plot (or an error created when
|
||||||
|
|||||||
@ -84,7 +84,7 @@ impl<'a> AutoComplete<'a> {
|
|||||||
|
|
||||||
/// Moves cursor of TextEdit `te_id` to the end
|
/// Moves cursor of TextEdit `te_id` to the end
|
||||||
pub fn move_cursor_to_end(ctx: &egui::Context, te_id: egui::Id) {
|
pub fn move_cursor_to_end(ctx: &egui::Context, te_id: egui::Id) {
|
||||||
let mut state = TextEdit::load_state(ctx, te_id).unwrap();
|
let mut state = TextEdit::load_state(ctx, te_id).expect("Expected TextEdit");
|
||||||
state.set_cursor_range(Some(CursorRange::one(Cursor {
|
state.set_cursor_range(Some(CursorRange::one(Cursor {
|
||||||
ccursor: CCursor {
|
ccursor: CCursor {
|
||||||
index: 0,
|
index: 0,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user