summaryrefslogtreecommitdiff
path: root/find.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-03-03 15:09:49 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-03-03 15:09:49 -0500
commita1646d84127a199fdacb6c5500d96e8829ebe8c1 (patch)
treeeb7d59e50813108105a5bc4539191a3b008a320d /find.c
parentd5488ef5c47878e04045a91d204cf1ccbdd9cd05 (diff)
:shell, bugfixes
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);
}