Skip to content

Commit

Permalink
Fix nil error when type org-insert-self-command.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Nov 3, 2024
1 parent bb64964 commit 7b3f18e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lsp-bridge.el
Original file line number Diff line number Diff line change
Expand Up @@ -1585,8 +1585,10 @@ So we build this macro to restore postion after code format."

(defun lsp-bridge--not-match-hide-keywords ()
"Hide completion if string before cursor match some special keywords."
(let ((string (buffer-substring-no-properties (car (bounds-of-thing-at-point 'symbol))
(point))))
(let ((string (if (bounds-of-thing-at-point 'symbol)
(buffer-substring-no-properties (car (bounds-of-thing-at-point 'symbol))
(point))
(char-to-string (char-before)))))
(not (when (and (or (derived-mode-p 'ruby-mode)
(derived-mode-p 'ruby-ts-mode)
(derived-mode-p 'elixir-mode)
Expand Down

0 comments on commit 7b3f18e

Please sign in to comment.