File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,6 @@ InboundPort::readDelimitedMessage(std::string &Buffer) {
249249 Buffer.clear ();
250250 llvm::SmallString<128 > Line;
251251 std::string NixDocURI;
252- std::string NixDoc;
253252 while (readLine (In, Close, Line)) {
254253 auto LineRef = Line.str ().trim ();
255254 if (State == State::Prose) {
@@ -288,14 +287,14 @@ InboundPort::readDelimitedMessage(std::string &Buffer) {
288287 {" uri" , NixDocURI},
289288 {" languageId" , " nix" },
290289 {" version" , 1 },
291- {" text" , llvm::StringRef (NixDoc ).rtrim ().str ()},
290+ {" text" , llvm::StringRef (Buffer ).rtrim ().str ()},
292291 },
293292 },
294293 },
295294 }};
296295 }
297- NixDoc += Line;
298- NixDoc += " \n " ;
296+ Buffer += Line;
297+ Buffer += " \n " ;
299298 } else {
300299 assert (false && " unreachable" );
301300 }
You can’t perform that action at this time.
0 commit comments