34GRGWSUJ54C2XGR4SKQYUNDUIWIEWZK6VY2HSHFPPEQEZEW4XHAC
53TGTUB6MIIE3MCY25XDEXZX5SBW2GSB6OOFVZKETK3IVZWVKYUQC
FHZ5AG3MCKSJQWTENRB54NDDPPG6NNOVRBYBS4F3T7JCGKY3AANQC
34BZ5ZKNAB4XQGXOPVBZHBDYD5D3X4V6T72XZSR5LJXF4UIVSWQAC
3PSFWAILGRA4OYXWS2DX7VF332AIBPYBXHEA4GIQY2XEJVD65UMAC
XNDCSWPCWESQ3ZXCRWTLYEYOKFY5IVFYD24RJ2KEELVCWEVPVUQAC
JOPVPUSAMMU6RFVDQR4NJC4GNNUFB7GPKVH7OS5FKCYS5QZ53VLQC
I4S4EFYX6P4RSBCCRAYYXA5MD63T3YINN36LOQXXDKMN7MVS6WNAC
S7CSVBHZ4AORIP4VIQETFAVXVMNKERVOI5DENNTU73ZO2L667N7QC
ICUW7F3XQLURK4LSNPH5E3NDEFSRHKATEUHH2UPFJTMHYR3ZJF3QC
2L5MEZV344TOZLVY3432RHJFIRVXFD6O3GWLL5O4CV66BGAFTURQC
B3PRPOPHWEAH3VNU2JFZU4YFGGDP6ZVFPLRUOH7OGH3SYIRIRJVAC
function edit.put_cursor_on_next_line_wrapping_around_if_necessary(State)
local line = State.cursor1.line
local max = #State.lines
for _ = 1, max-1 do
line = (line+1) % max
if State.lines[line].mode == 'text' then
State.cursor1.line = line
State.cursor1.pos = 1
break
end
end
end
function edit.put_cursor_on_next_loc_wrapping_around_if_necessary(State)
local cursor_line = State.lines[State.cursor1.line].data
if State.cursor1.pos <= utf8.len(cursor_line) then
State.cursor1.pos = State.cursor1.pos + 1
else
end
end