We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5de7bc8 commit e988704Copy full SHA for e988704
graphics/src/text/editor.rs
@@ -375,6 +375,8 @@ impl editor::Editor for Editor {
375
);
376
}
377
Edit::Paste(text) => {
378
+ internal.topmost_line_changed =
379
+ Some(editor.cursor().line);
380
editor.insert_string(&text, None);
381
382
Edit::Indent => {
@@ -414,8 +416,9 @@ impl editor::Editor for Editor {
414
416
.selection_bounds()
415
417
.map(|(start, _)| start)
418
.unwrap_or(cursor);
-
- internal.topmost_line_changed = Some(selection_start.line);
419
+ _ = internal
420
+ .topmost_line_changed
421
+ .get_or_insert(selection_start.line);
422
423
424
// Mouse events
0 commit comments