Merge pull request #3226 from tudurom/develop

Fix +format/region when formatting with LSP
This commit is contained in:
Henrik Lissner 2020-05-26 12:48:17 -04:00 committed by GitHub
commit cb016f21be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -223,7 +223,7 @@ snippets or single lines."
(if (and +format-with-lsp
(bound-and-true-p lsp-mode)
(lsp-feature? "textDocument/rangeFormatting"))
#'lsp-format-region
(call-interactively #'lsp-format-region)
(save-restriction
(narrow-to-region beg end)
(let ((+format-region-p t))