diff options
Diffstat (limited to 'search.lua')
-rw-r--r-- | search.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/search.lua b/search.lua index 95a7f32..72ee30c 100644 --- a/search.lua +++ b/search.lua @@ -79,7 +79,7 @@ end function Text.search_previous(State) -- search current line - local pos = rfind(State.lines[State.cursor1.line].data, State.search_term, State.cursor1.pos) + local pos = rfind(State.lines[State.cursor1.line].data, State.search_term, State.cursor1.pos-1) if pos then State.cursor1.pos = pos end |