WV2NJUISBUL33UBBNOGAFMCB3KW74VFXI5EIDBUXFUQMENP3GOGAC 7QBK5QASVQA6KKGWEDEN44BZO3B4KG44A5NVAWVN2VV7ELVW5JQQC LPSPW23CMAJXBHPCWKOLFUZC2QMHOXZ35WE52QADI2PKYQERZDWAC X6DXCO6KHXGD7LP3QRI6WSOAXYS67LAFK2ZUNH5B5QZIV3FCEH6QC R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC F4RUTONDM6GET6RT6ZBJKHJWJZWHJLCI2NM5ZMOFJGWAOEUCBDQQC A3PSROTJY63GV6E6NMVLEVJPYYI4UOMA3BUFPOG6CIWYAJPJRPAQC I5OOVAZO633DS3ZE5VNZOCMOGOHFGDZKFJKDEVOFXCZUCRGODS3AC MEWFN45RVBRSMIKLXJQSLBZD62YJFWV75QOTODAR6JXX5LRAJT7QC T42Y5MLOV7WMURTBEZTUVMYEVG72UMN6BPG2QHOYW7G2CC75ZNGQC HKZATWO5F47V36SZYUOEPLKNAK7ZEIMCJWERJPT4MFQ66H7C76JAC GVOLLPQFFP5G7KCCSCPH42ZHGA5BORMTYN63FUNPXWW7FUK5OW2AC 3QNOKBFMKBGXBVJIRHR2444JRRMBTABHE4674NR3DT67RRM2X6GAC U3ILRRMOBERVAT3MW7ONFPG3XEBP3Q4QKAHJKKE5CLCXCPHMSIAAC UZHSWA3DU3BPK6AGNIVZUEGPRTHIBA7SSX4DRUN3K4D42KNNN4YQC JNJ4R56X3HVU4IGKZZ2IV73PALEXSYOIOAIVXZTV43BG7PEY6AOQC App.screen.check(y, 'I’m ad', 'screen:3')App.screen.check(y, 'hi ', 'baseline/screen:3')App.screen.check(y, 'hi ', 'screen:1')App.screen.check(y, 'jkl m', 'screen:2')App.screen.check(y, 'no p', 'screen:3')endfunction test_pagedown_never_moves_up()-- draw the final screen line of a wrapping lineApp.screen.init{width=Editor_state.left+30, height=60}Editor_state = edit.initialize_test_state()Editor_state.lines = load_array{'abc def ghi'}Text.redraw_all(Editor_state)y = y + Editor_state.line_heighty = y + Editor_state.line_height-- after pagedown we scroll down the very long wrapping lineedit.run_after_keychord(Editor_state, 'pagedown', 'pagedown')check_eq(Editor_state.screen_top1.line, 1, 'screen_top:line')endfunction test_click_past_end_of_screen_line()-- display a wrapping lineApp.screen.init{width=75, height=80}Editor_state = edit.initialize_test_state()-- 12345678901234Editor_state.lines = load_array{"madam I'm adam"}Text.redraw_all(Editor_state)Editor_state.cursor1 = {line=1, pos=1}Editor_state.screen_top1 = {line=1, pos=1}
love.window.setMode(width, height, flags)if OS == 'iOS' thenlove.keyboard.setTextInput(has_text_input) -- iOS recreates the window on setMode-- this property is part of the window-- https://github.com/love2d/love/issues/1959love.keyboard.setKeyRepeat(true)endendApp.screen.resize = function(w, h, flags)
love.window.setMode(w, h, flags)
love.window.setMode(width, height, flags)if OS == 'iOS' thenlove.keyboard.setTextInput(has_text_input) -- iOS recreates the window on setMode-- this property is part of the window-- https://github.com/love2d/love/issues/1959love.keyboard.setKeyRepeat(true)end