Skip to content

Commit

Permalink
red: text_replace select fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hugeping committed Oct 25, 2023
1 parent fac8582 commit 75a73af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/lib/red/proc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ local function text_replace(w, glob, fn, a, b)
w.buf:input(text)
w.buf:history 'end'
if not a then
w.buf:setsel(s, w:cur()+1)
w.buf:setsel(s, w:cur())
end
w:visible()
end
Expand Down

0 comments on commit 75a73af

Please sign in to comment.