There was an error while loading. Please reload this page.
1ec2b04
TextArea::yank_text
TextArea::set_yank_text
let mut textarea = TextArea::default(); textarea.set_yank_text("hello, world"); assert_eq!(textarea.yank_text(), "hello, world"); textarea.paste(); assert_eq!(textarea.lines(), ["hello, world"]);
CursorMove::Jump(row, col)
TextArea::move_cursor
let mut textarea = TextArea::from(["aaaa", "bbbb"]); textarea.move_cursor(CursorMove::Jump(1, 2)); assert_eq!(textarea.cursor(), (1, 2));