File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -4176,12 +4176,13 @@ and the position respectively."
4176
4176
4177
4177
(defun lsp--looking-back-trigger-characters-p (trigger-characters)
4178
4178
"Return trigger character if text before point matches any of the TRIGGER-CHARACTERS."
4179
- (seq-some
4180
- (lambda (trigger-char)
4181
- (and (equal (buffer-substring-no-properties (- (point) (length trigger-char)) (point))
4182
- trigger-char)
4183
- trigger-char))
4184
- trigger-characters))
4179
+ (unless (= (point) (point-at-bol))
4180
+ (seq-some
4181
+ (lambda (trigger-char)
4182
+ (and (equal (buffer-substring-no-properties (- (point) (length trigger-char)) (point))
4183
+ trigger-char)
4184
+ trigger-char))
4185
+ trigger-characters)))
4185
4186
4186
4187
(defvar lsp--capf-cache nil
4187
4188
"Cached candidates for completion at point function.
You can’t perform that action at this time.
0 commit comments