Skip to content

Commit

Permalink
docs: add note about cmdline backspace hack
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Dec 20, 2024
1 parent d8ffbe9 commit 1d50e97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/blink/cmp/lib/cmdline_events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ function cmdline_events:listen(opts)
-- TextChanged
local on_changed = function(key) opts.on_char_added(key, false) end

-- We handle backspace as a special case, because the text will have changed
-- but we still want to fire the CursorMoved event, and not the TextChanged event
local did_backspace = false
local is_change_queued = false
vim.on_key(function(raw_key, escaped_key)
Expand Down

0 comments on commit 1d50e97

Please sign in to comment.