Skip to content

Commit 5f741bb

Browse files
committed
fix: stopinsert anytime
1 parent 7bb41eb commit 5f741bb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lua/search-and-replace/state.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,7 @@ function state:cleanup(scope)
212212

213213
self.reset(self)
214214

215-
if not _G.SearchAndReplace.config.default_replace_prompt_to_normal_mode then
216-
vim.api.nvim_command("stopinsert")
217-
end
215+
vim.api.nvim_command("stopinsert!")
218216
end
219217

220218
return state

0 commit comments

Comments
 (0)