We don't need to perform the scroll calculations after inserting every single character from the clipboard.
VC2CU2GGRIWXIFJELD5NAELDUIRY5S5LEAFJCM2A5P3CUBYF3Z3AC
EV36VCVF362E3QE22RO33TOCZRL3X7SJUDGVPL3YXISIR5LHK6JAC
WIDXZBNW4CCOGWHCQSICXRPSZ4MB24OJZLEC3RO3UTEZKEFUZBSQC
LS55YKGWKICTQTAHR5KLMNDOL6CDI4ATT3NT5Z2YL5IM3CRQOONQC
OTIBCAUJ3KDQJLVDN3A536DLZGNRYMGJLORZVR3WLCGXGO6UGO6AC
3TDOZESEOYHGF6LYKR6PYSPNFI3QUGED2BKM5LUDEKJKRIX3ACEAC
IRCKL6VNSFB7TQEKPQUPJCN37N5QW7D54DSZMESVXGK7NEHGSIPAC
5ZFHMYQIX3BJ3OXWEAZHTXVZ4P6JJ7X34D372XGKBZWVYXLX75OQC
NQWWTGXRLSBASOSP75FPOSVYP664VYRFQH7MY5LALLIP2VEBQMCQC
IDGP4BJZTKAD6ZO4RLAWYVN6IFCMIM76G6HJGPTE27K4D6CDBUHQC
FS2ITYYHBLFT66YUC3ENPFYI2HOYHOVEPQIN7NQR6KF5MEK4NKZAC
34TC5SYKYVUCVIQM3GNVYURQAMIXX64IOSJ4TYBPSRDS65QLTHWAC
if Cursor_y >= App.screen.height - Line_height then
Text.populate_screen_line_starting_pos(Cursor1.line)
Text.snap_cursor_to_bottom_of_screen()
--? print('=>', Screen_top1.line, Screen_top1.pos, Cursor1.line, Cursor1.pos, Screen_bottom1.line, Screen_bottom1.pos)
end
* Large files may grow sluggish in other ways. Pasting more than a line or two
gets slow. I've noticed in 100KB files that closing the window can take a
few seconds. And it seems to take longer in proportion to how far down my
edits are. The phenomenon persists even if I take out undo history.
* Large files may grow sluggish in other ways. I've noticed in 100KB files
that closing the window can take a few seconds. And it seems to take longer
in proportion to how far down my edits are. The phenomenon persists even if
I take out undo history.