[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 1.2 ce9076d 047/101: Close #82: Correctly delete text before expa
From: |
Christian Johansson |
Subject: |
[elpa] 1.2 ce9076d 047/101: Close #82: Correctly delete text before expanding snippet completions |
Date: |
Thu, 29 Apr 2021 15:08:58 -0400 (EDT) |
tag: 1.2
commit ce9076d3056f4ca01a1456a9f64e231ea6f73701
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
Close #82: Correctly delete text before expanding snippet completions
Suggested by Amol Mandhane.
* eglot.el (eglot-completion-at-point): Use length of obj in
:exit-function
---
eglot.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eglot.el b/eglot.el
index eba1b1d..7587164 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1464,7 +1464,7 @@ is not active."
(text-properties-at 0 obj)
(when-let ((fn (and (eql insertTextFormat 2)
(eglot--snippet-expansion-fn))))
- (delete-region (car bounds) (point))
+ (delete-region (- (point) (length obj)) (point))
(funcall fn insertText))
(eglot--signal-textDocument/didChange)
(eglot-eldoc-function)))))))
- [elpa] 1.2 4d80eeb 015/101: Default eglot-handle-notifictiona|request must &allow-other-keys, (continued)
- [elpa] 1.2 4d80eeb 015/101: Default eglot-handle-notifictiona|request must &allow-other-keys, Christian Johansson, 2021/04/29
- [elpa] 1.2 d2faf6d 001/101: Close #29: Implement workspace/didChangeConfiguration (#40), Christian Johansson, 2021/04/29
- [elpa] 1.2 5aea589 013/101: Close #58: Erase company-doc buffer in between doc requests, Christian Johansson, 2021/04/29
- [elpa] 1.2 5707785 024/101: * eglot.el (eglot-cquery): Capitalize docstring., Christian Johansson, 2021/04/29
- [elpa] 1.2 6067ec6 023/101: Minor fixes to test infrastructure, Christian Johansson, 2021/04/29
- [elpa] 1.2 13b8c61 040/101: Per #74: Don't error if server replies with empty hover message, Christian Johansson, 2021/04/29
- [elpa] 1.2 53c8f59 059/101: Handle case when diagnostic :character is out of range, Christian Johansson, 2021/04/29
- [elpa] 1.2 1408860 052/101: Close #94: Prefer ccls over cquery for C/C++, Christian Johansson, 2021/04/29
- [elpa] 1.2 a1e8946 045/101: Close #80: Consider :triggerCharacters in company completion, Christian Johansson, 2021/04/29
- [elpa] 1.2 989647a 049/101: When exiting emacs, don't ask the user to confirm killing processes (#83), Christian Johansson, 2021/04/29
- [elpa] 1.2 ce9076d 047/101: Close #82: Correctly delete text before expanding snippet completions,
Christian Johansson <=
- [elpa] 1.2 746505f 072/101: Require subr-x at compile time (#139), Christian Johansson, 2021/04/29
- [elpa] 1.2 eec30e3 070/101: Fix misspelling of "outstanding" (#74), Christian Johansson, 2021/04/29
- [elpa] 1.2 ff62057 071/101: Fix #138: accept deprecated field in SymbolInformation, Christian Johansson, 2021/04/29
- [elpa] 1.2 f317a7d 069/101: * eglot-tests.el: Disable eclipse connection tests., Christian Johansson, 2021/04/29
- [elpa] 1.2 ff92d67 073/101: Remove duplicates from imenu, Christian Johansson, 2021/04/29
- [elpa] 1.2 660d9e3 078/101: Slightly robustify test engine, Christian Johansson, 2021/04/29
- [elpa] 1.2 da4cd2a 083/101: Make imenu hierarchical, Christian Johansson, 2021/04/29
- [elpa] 1.2 912d10f 088/101: Fix a bug introduced by previous bugfix, Christian Johansson, 2021/04/29
- [elpa] 1.2 8529b55 089/101: Fix #124: add ability to move to LSP-precise columns, Christian Johansson, 2021/04/29
- [elpa] 1.2 90b3bfd 090/101: Fix #148: complex completions work when chosen from *completions*, Christian Johansson, 2021/04/29