From 081db9d0865403a5d82a749e58f035479193ca8a Mon Sep 17 00:00:00 2001 From: John Bowman Date: Tue, 19 Dec 2023 19:17:52 -0800 Subject: [PATCH] Fix LSP segmentation fault. --- lspserv.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lspserv.cc b/lspserv.cc index 0707731a6..6ec74e2cc 100644 --- a/lspserv.cc +++ b/lspserv.cc @@ -465,7 +465,7 @@ std::string wslUnix2Dos(std::string const& unixPath) size_t lineOffset = 0; auto& strLines = fileContentsPtr->at(getDocIdentifierRawPath(req.params.textDocument)); - char ch=strLines[line + lineOffset + 1][colm - 1 + offset]; + char ch=strLines[line + lineOffset - 1][colm - 1 + offset]; while ( ch != ')' and ch != ';'