We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e379ae5 commit e47ea29Copy full SHA for e47ea29
lsp-completion.el
@@ -525,8 +525,11 @@ The MARKERS and PREFIX value will be attached to each candidate."
525
:company-require-match 'never
526
:company-prefix-length
527
(save-excursion
528
- (defvar company-minimum-prefix-length)
529
- (let ((bounds-left (max (line-beginning-position) (- (point) company-minimum-prefix-length)))
+ (let (
+ ;; 2 is a heuristic number to make sure we look futher back than
530
+ ;; the bounds-start, which can be different from the actual start
531
+ ;; of the symbol
532
+ (bounds-left (max (line-beginning-position) (- bounds-start 2)))
533
triggered-by-char?)
534
(while (and (> (point) bounds-left)
535
(not (equal (char-after) ?\s))
0 commit comments