summaryrefslogtreecommitdiff
path: root/find.c
diff options
context:
space:
mode:
Diffstat (limited to 'find.c')
-rw-r--r--find.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/find.c b/find.c
index 58bff8c..1e0b409 100644
--- a/find.c
+++ b/find.c
@@ -451,9 +451,7 @@ static void find_open(Ted *ted, bool replace) {
ted->find = true;
buffer_select_all(ted->active_buffer);
}
- if (!ted->replace && replace) {
- ted->replace = true;
- }
+ ted->replace = replace;
find_update(ted, true);
}