aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/find.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index 7c126e0b..6fab6fc2 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -363,7 +363,7 @@ local function replace_all(ftext, rtext)
buffer:indicator_fill_range(e, 1)
buffer:goto_pos(s)
local pos = find(ftext, true, nil, true)
- while pos ~= -1 and pos <= buffer:indicator_end(INDIC_REPLACE, s) do
+ while pos ~= -1 and pos < buffer:indicator_end(INDIC_REPLACE, s) do
replace(rtext)
count = count + 1
pos = find(ftext, true, nil, true)