This commit is contained in:
Kartik K. Agaram 2023-09-16 22:41:55 -07:00
parent 9241fedf3a
commit c43d884b6f
2 changed files with 16 additions and 16 deletions

View File

@ -142,14 +142,14 @@ end
function edit.put_cursor_on_next_text_line(State) function edit.put_cursor_on_next_text_line(State)
while true do while true do
if State.cursor1.line >= #State.lines then if State.cursor1.line >= #State.lines then
break break
end end
if State.lines[State.cursor1.line].mode == 'text' then if State.lines[State.cursor1.line].mode == 'text' then
break break
end end
State.cursor1.line = State.cursor1.line+1 State.cursor1.line = State.cursor1.line+1
State.cursor1.pos = 1 State.cursor1.pos = 1
end end
end end

View File

@ -144,14 +144,14 @@ end
function edit.put_cursor_on_next_text_line(State) function edit.put_cursor_on_next_text_line(State)
while true do while true do
if State.cursor1.line >= #State.lines then if State.cursor1.line >= #State.lines then
break break
end end
if State.lines[State.cursor1.line].mode == 'text' then if State.lines[State.cursor1.line].mode == 'text' then
break break
end end
State.cursor1.line = State.cursor1.line+1 State.cursor1.line = State.cursor1.line+1
State.cursor1.pos = 1 State.cursor1.pos = 1
end end
end end