Skip to content

Commit

Permalink
Fix LSP segmentation fault.
Browse files Browse the repository at this point in the history
  • Loading branch information
johncbowman committed Dec 20, 2023
1 parent 488d809 commit 081db9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lspserv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 != ';'
Expand Down

0 comments on commit 081db9d

Please sign in to comment.