Skip to content

Commit

Permalink
fix company-capf error when point is on (
Browse files Browse the repository at this point in the history
  • Loading branch information
arne committed Feb 12, 2025
1 parent 5ada070 commit 428050e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions el/sclang-language.el
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,10 @@ are considered."
"Function used for `completion-at-point-functions' in `sclang-mode'."
(let* ((end (point))
(beg (save-excursion
(backward-sexp 1)
(skip-syntax-forward "'")
(point)))
(or (ignore-errors (backward-sexp 1)
(skip-syntax-forward "'")
(point))
(point))))
(pattern (buffer-substring-no-properties beg end))
(case-fold-search nil)
(predicate (if (sclang-class-name-p pattern)
Expand Down

0 comments on commit 428050e

Please sign in to comment.