Revert "fix: remove stopinsert from lock_buf (#1323)" (#1330)

This commit is contained in:
yetone
2025-02-21 03:32:14 +08:00
committed by GitHub
parent 2d8f25efad
commit 581e61fae1

View File

@@ -405,6 +405,7 @@ function M.unlock_buf(bufnr)
end
function M.lock_buf(bufnr)
vim.cmd("stopinsert")
vim.bo[bufnr].modified = false
vim.bo[bufnr].modifiable = false
end