@@ -171,7 +171,8 @@ The functions receive the inserted text and the range that was updated by the co
171
171
(when (overlayp lsp-inline-completion--overlay)
172
172
(delete-overlay lsp-inline-completion--overlay))
173
173
(setq lsp-inline-completion--overlay nil )
174
- (internal-pop-keymap lsp-inline-completion-active-map 'overriding-terminal-local-map ))
174
+ (internal-pop-keymap lsp-inline-completion-active-map 'overriding-terminal-local-map )
175
+ (remove-hook 'pre-command-hook #'lsp-inline-completion--pre-command-hook t ))
175
176
176
177
177
178
(defun lsp-inline-completion--show-keys ()
@@ -206,6 +207,7 @@ The functions receive the inserted text and the range that was updated by the co
206
207
" Build the suggestions overlay."
207
208
(lsp-inline-completion--clear-overlay)
208
209
210
+ (add-hook 'pre-command-hook #'lsp-inline-completion--pre-command-hook nil t )
209
211
(setq lsp-inline-completion--overlay (make-overlay beg end nil nil t ))
210
212
(overlay-put lsp-inline-completion--overlay 'priority lsp-inline-completion-overlay-priority)
211
213
(internal-push-keymap lsp-inline-completion-active-map 'overriding-terminal-local-map )
@@ -433,7 +435,6 @@ lsp-inline-completion-mode is active."
433
435
:lighter nil
434
436
(cond
435
437
((and lsp-inline-completion-mode lsp--buffer-workspaces)
436
- (add-hook 'pre-command-hook #'lsp-inline-completion--pre-command-hook nil t )
437
438
(add-hook 'lsp-on-change-hook #'lsp-inline-completion--after-change nil t ))
438
439
439
440
(t
@@ -442,7 +443,6 @@ lsp-inline-completion-mode is active."
442
443
443
444
(lsp-inline-completion-cancel)
444
445
445
- (remove-hook 'pre-command-hook #'lsp-inline-completion--pre-command-hook t )
446
446
(remove-hook 'lsp-on-change-hook #'lsp-inline-completion--after-change t ))))
447
447
448
448
(defun lsp-inline-completion--maybe-display (original-buffer original-point )
0 commit comments