Skip to content

Commit

Permalink
fix: autocomplete positioning on first char in line
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Oct 10, 2024
1 parent 588e4d4 commit 7afb06c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/blink/cmp/windows/autocomplete.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function autocomplete.update_position(context)

-- place the window at the start col of the current text we're fuzzy matching against
-- so the window doesnt move around as we type
local col = context.bounds.start_col - cursor_col - 1
local col = context.bounds.start_col - cursor_col - (context.bounds.start_col == 0 and 0 or 1)

-- detect if there's space above/below the cursor
-- todo: should pick the largest space if both are false and limit height of the window
Expand Down

0 comments on commit 7afb06c

Please sign in to comment.