Skip to content

Commit

Permalink
[TextServer] Fix structured text parser for GDScript comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruvzg committed Sep 3, 2024
1 parent 7c38376 commit 1829bc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servers/text_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2071,8 +2071,8 @@ TypedArray<Vector3i> TextServer::parse_structured_text(StructuredTextParser p_pa
if (prev != i) {
ret.push_back(Vector3i(prev, i, TextServer::DIRECTION_AUTO));
}
prev = i + 1;
ret.push_back(Vector3i(i, i + 1, TextServer::DIRECTION_LTR));
prev = p_text.length();
ret.push_back(Vector3i(i, p_text.length(), TextServer::DIRECTION_AUTO));
break;
}
}
Expand Down

0 comments on commit 1829bc3

Please sign in to comment.