Skip to content

Commit

Permalink
fix(input): mode detection in special insert modes
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Jan 17, 2022
1 parent c2208c3 commit 1f91d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dressing/input.lua
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ setmetatable(M, {
bufnr = vim.api.nvim_win_get_buf(winid)
start_in_insert = context.start_in_insert
else
start_in_insert = string.sub(vim.api.nvim_get_mode().mode, 1, 2) == "i"
start_in_insert = string.sub(vim.api.nvim_get_mode().mode, 1, 1) == "i"
bufnr = vim.api.nvim_create_buf(false, true)
winid = vim.api.nvim_open_win(bufnr, true, winopt)
end
Expand Down

0 comments on commit 1f91d26

Please sign in to comment.