EETIR4GXZBA5DEXUQKI6XMC22SFHZIYTZRR4U6BW6BT3RZA32FHQC
local y = Editor_state.top
App.screen.check(y, 'abc', 'F - test_search/baseline/screen:1')
y = y + Editor_state.line_height
App.screen.check(y, 'def', 'F - test_search/baseline/screen:2')
y = y + Editor_state.line_height
App.screen.check(y, 'ghi', 'F - test_search/baseline/screen:3')
local pos = State.lines[State.cursor1.line].data:find(State.search_term, State.cursor1.pos)
if pos then
State.cursor1.pos = pos
local line = State.lines[State.cursor1.line]
if line.mode == 'text' then
pos = line.data:find(State.search_term, State.cursor1.pos)
if pos then
State.cursor1.pos = pos
end
pos = State.lines[i].data:find(State.search_term)
if pos then
State.cursor1.line = i
State.cursor1.pos = pos
break
local line = State.lines[i]
if line.mode == 'text' then
pos = State.lines[i].data:find(State.search_term)
if pos then
State.cursor1.line = i
State.cursor1.pos = pos
break
end